1*9880d681SAndroid Build Coastguard Worker@ RUN: llvm-mc -triple=thumbv6t2--none-eabi -show-encoding < %s | FileCheck %s 2*9880d681SAndroid Build Coastguard Worker@ RUN: llvm-mc -triple=thumbv7a--none-eabi -show-encoding < %s | FileCheck %s 3*9880d681SAndroid Build Coastguard Worker@ RUN: llvm-mc -triple=thumbv7r--none-eabi -show-encoding < %s | FileCheck %s 4*9880d681SAndroid Build Coastguard Worker@ RUN: llvm-mc -triple=thumbv8a--none-eabi -show-encoding < %s | FileCheck %s 5*9880d681SAndroid Build Coastguard Worker@ RUN: not llvm-mc -triple=thumbv7m--none-eabi -show-encoding < %s 2>&1 | FileCheck %s --check-prefix=UNDEF 6*9880d681SAndroid Build Coastguard Worker 7*9880d681SAndroid Build Coastguard Worker cpsie f 8*9880d681SAndroid Build Coastguard Worker cpsie i, #3 9*9880d681SAndroid Build Coastguard Worker cps #0 10*9880d681SAndroid Build Coastguard Worker 11*9880d681SAndroid Build Coastguard Worker@ CHECK: cpsie f @ encoding: [0x61,0xb6] 12*9880d681SAndroid Build Coastguard Worker@ CHECK: cpsie i, #3 @ encoding: [0xaf,0xf3,0x43,0x85] 13*9880d681SAndroid Build Coastguard Worker@ CHECK: cps #0 @ encoding: [0xaf,0xf3,0x00,0x81] 14*9880d681SAndroid Build Coastguard Worker 15*9880d681SAndroid Build Coastguard Worker@ UNDEF-DAG: cpsie f @ encoding: [0x61,0xb6] 16*9880d681SAndroid Build Coastguard Worker@ UNDEF-DAG: error: instruction requires: 17*9880d681SAndroid Build Coastguard Worker@ UNDEF-DAG: error: instruction 'cps' requires effect for M-class 18