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