[ARM] Fixup sign extend instruction availability w.r.t. DSP extension
[oota-llvm.git] / test / MC / ARM / thumb2-dsp-diag.s
1 ; RUN: not llvm-mc -triple=thumbv7m < %s 2> %t
2 ; RUN: FileCheck --check-prefix=CHECK-ERRORS < %t %s
3
4 sxtab r0, r0, r0
5 sxtah r0, r0, r0
6 sxtab16 r0, r0, r0
7 sxtb16 r0, r0
8 sxtb16 r0, r0, ror #8
9 ; CHECK-ERRORS: error: instruction requires: arm-mode
10 ; CHECK-ERRORS: error: instruction requires: arm-mode
11 ; CHECK-ERRORS: error: instruction requires: arm-mode
12 ; CHECK-ERRORS: error: instruction requires: arm-mode
13 ; CHECK-ERRORS: error: invalid operand for instruction
14
15 uxtab r0, r0, r0
16 uxtah r0, r0, r0
17 uxtab16 r0, r0, r0
18 uxtb16 r0, r0
19 uxtb16 r0, r0, ror #8
20 ; CHECK-ERRORS: error: instruction requires: arm-mode
21 ; CHECK-ERRORS: error: instruction requires: arm-mode
22 ; CHECK-ERRORS: error: instruction requires: arm-mode
23 ; CHECK-ERRORS: error: instruction requires: arm-mode
24 ; CHECK-ERRORS: error: invalid operand for instruction