2014-04-03 17:35:22 +00:00
|
|
|
@ RUN: llvm-mc -show-encoding -triple=arm-eabi < %s \
|
|
|
|
@ RUN: | FileCheck %s --check-prefix=CHECK-ARM-ONLY
|
|
|
|
|
|
|
|
@ RUN: llvm-mc -show-encoding -triple=armv4t-eabi < %s \
|
|
|
|
@ RUN: | FileCheck %s --check-prefix=CHECK-ARM-THUMB
|
|
|
|
|
|
|
|
@ RUN: llvm-mc -show-encoding -triple=arm-eabi -mcpu=cortex-a15 < %s \
|
|
|
|
@ RUN: | FileCheck %s --check-prefix=CHECK-ARM-THUMB
|
|
|
|
|
|
|
|
@ RUN: llvm-mc -show-encoding -triple=arm-eabi -mcpu=cortex-m3 < %s \
|
|
|
|
@ RUN: | FileCheck %s --check-prefix=CHECK-THUMB-ONLY
|
|
|
|
|
|
|
|
@ RUN: llvm-mc -show-encoding -triple=armv7m-eabi < %s \
|
|
|
|
@ RUN: | FileCheck %s --check-prefix=CHECK-THUMB-ONLY
|
|
|
|
|
|
|
|
@ RUN: llvm-mc -show-encoding -triple=armv6m-eabi < %s \
|
|
|
|
@ RUN: | FileCheck %s --check-prefix=CHECK-THUMB-ONLY
|
2013-06-10 23:20:58 +00:00
|
|
|
|
|
|
|
@ Make sure the architecture chosen by LLVM defaults to a compatible
|
|
|
|
@ ARM/Thumb mode.
|
|
|
|
movs r0, r0
|
|
|
|
@ CHECK-ARM-THUMB: movs r0, r0 @ encoding: [0x00,0x00,0xb0,0xe1]
|
|
|
|
@ CHECK-ARM-ONLY: movs r0, r0 @ encoding: [0x00,0x00,0xb0,0xe1]
|
|
|
|
@ CHECK-THUMB-ONLY: movs r0, r0 @ encoding: [0x00,0x00]
|