1 # RUN: not llvm-mc -triple thumbv7 -mcpu=cortex-m0 %s 2>&1 | FileCheck %s
5 ADDs
r1, r0, #0xFFFFFFF5
6 # CHECK: error: invalid instruction, any one of the following would fix this:
7 # CHECK-DAG: note: instruction requires: thumb2
8 # CHECK-DAG: note: invalid operand for instruction
9 # CHECK-DAG: note: operand must be an immediate in the range [0,7]
10 # CHECK-DAG: note: operand must be a register in range [r0, r7]
13 # CHECK: error: invalid instruction, any one of the following would fix this:
14 # CHECK-DAG: note: invalid operand for instruction
15 # CHECK-DAG: note: operand must be an immediate in the range [0,255]
17 SUBs
r1, r0, #0xFFFFFFF5
18 # CHECK: error: invalid instruction, any one of the following would fix this:
19 # CHECK-DAG: note: invalid operand for instruction
20 # CHECK-DAG: note: operand must be an immediate in the range [0,7]
21 # CHECK-DAG: note: operand must be a register in range [r0, r7]
24 # CHECK: error: invalid instruction, any one of the following would fix this:
25 # CHECK-DAG: note: invalid operand for instruction
26 # CHECK-DAG: note: operand must be an immediate in the range [0,255]
28 ORRs
r0, r1, #0xFFFFFF00
29 # CHECK: error: invalid instruction, any one of the following would fix this:
30 # CHECK-DAG: note: instruction requires: thumb2
31 # CHECK-DAG: note: too many operands for instruction
33 ORNs
r0, r1, #0xFFFFFF00
34 # CHECK: error: instruction requires: thumb2