25 lines · plain
1@ RUN: llvm-mc -show-encoding -triple=arm-eabi < %s \2@ RUN: | FileCheck %s --check-prefix=CHECK-ARM-ONLY3 4@ RUN: llvm-mc -show-encoding -triple=armv4t-eabi < %s \5@ RUN: | FileCheck %s --check-prefix=CHECK-ARM-THUMB6 7@ RUN: llvm-mc -show-encoding -triple=arm-eabi -mcpu=cortex-a15 < %s \8@ RUN: | FileCheck %s --check-prefix=CHECK-ARM-THUMB9 10@ RUN: llvm-mc -show-encoding -triple=arm-eabi -mcpu=cortex-m3 < %s \11@ RUN: | FileCheck %s --check-prefix=CHECK-THUMB-ONLY12 13@ RUN: llvm-mc -show-encoding -triple=armv7m-eabi < %s \14@ RUN: | FileCheck %s --check-prefix=CHECK-THUMB-ONLY15 16@ RUN: llvm-mc -show-encoding -triple=armv6m-eabi < %s \17@ RUN: | FileCheck %s --check-prefix=CHECK-THUMB-ONLY18 19 @ Make sure the architecture chosen by LLVM defaults to a compatible20 @ ARM/Thumb mode.21 movs r0, r022@ 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