[obj2yaml] - Fix a comment. NFC.
[llvm-complete.git] / test / MC / ARM / arm-thumb-cpus-default.s
blobd7a18490ffc5121e4d0d2eac6450d0ebf7f553c1
1 @ RUN: llvm-mc -show-encoding -triple=arm-eabi < %s \
2 @ RUN: | FileCheck %s --check-prefix=CHECK-ARM-ONLY
4 @ RUN: llvm-mc -show-encoding -triple=armv4t-eabi < %s \
5 @ RUN: | FileCheck %s --check-prefix=CHECK-ARM-THUMB
7 @ RUN: llvm-mc -show-encoding -triple=arm-eabi -mcpu=cortex-a15 < %s \
8 @ RUN: | FileCheck %s --check-prefix=CHECK-ARM-THUMB
10 @ RUN: llvm-mc -show-encoding -triple=arm-eabi -mcpu=cortex-m3 < %s \
11 @ RUN: | FileCheck %s --check-prefix=CHECK-THUMB-ONLY
13 @ RUN: llvm-mc -show-encoding -triple=armv7m-eabi < %s \
14 @ RUN: | FileCheck %s --check-prefix=CHECK-THUMB-ONLY
16 @ RUN: llvm-mc -show-encoding -triple=armv6m-eabi < %s \
17 @ RUN: | FileCheck %s --check-prefix=CHECK-THUMB-ONLY
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]