1@ RUN: llvm-mc -show-encoding -triple=arm-eabi < %s \ 2@ RUN: | FileCheck %s --check-prefix=CHECK-ARM-ONLY 3 4@ RUN: llvm-mc -show-encoding -triple=armv4t-eabi < %s \ 5@ RUN: | FileCheck %s --check-prefix=CHECK-ARM-THUMB 6 7@ RUN: llvm-mc -show-encoding -triple=arm-eabi -mcpu=cortex-a15 < %s \ 8@ RUN: | FileCheck %s --check-prefix=CHECK-ARM-THUMB 9 10@ RUN: llvm-mc -show-encoding -triple=arm-eabi -mcpu=cortex-m3 < %s \ 11@ RUN: | FileCheck %s --check-prefix=CHECK-THUMB-ONLY 12 13@ RUN: llvm-mc -show-encoding -triple=armv7m-eabi < %s \ 14@ RUN: | FileCheck %s --check-prefix=CHECK-THUMB-ONLY 15 16@ RUN: llvm-mc -show-encoding -triple=armv6m-eabi < %s \ 17@ RUN: | FileCheck %s --check-prefix=CHECK-THUMB-ONLY 18 19 @ Make sure the architecture chosen by LLVM defaults to a compatible 20 @ ARM/Thumb mode. 21 movs r0, r0 22@ CHECK-ARM-THUMB: movs r0, r0 @ encoding: [0x00,0x00,0xb0,0xe1] 23@ CHECK-ARM-ONLY: movs r0, r0 @ encoding: [0x00,0x00,0xb0,0xe1] 24@ CHECK-THUMB-ONLY: movs r0, r0 @ encoding: [0x00,0x00] 25