brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 5fca211 Raw
35 lines · plain
1# RUN: not llvm-mc -triple thumbv7 -mcpu=cortex-m0 %s 2>&1 | FileCheck %s2 3.thumb4 5ADDs r1, r0, #0xFFFFFFF56# CHECK: error: invalid instruction, any one of the following would fix this:7# CHECK-DAG: note: instruction requires: thumb28# CHECK-DAG: note: invalid operand for instruction9# 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]11 12ADDs r0, #0xFFFFFEFF13# CHECK: error: invalid instruction, any one of the following would fix this:14# CHECK-DAG: note: invalid operand for instruction15# CHECK-DAG: note: operand must be an immediate in the range [0,255] or a relocatable expression16 17SUBs r1, r0, #0xFFFFFFF518# CHECK: error: invalid instruction, any one of the following would fix this:19# CHECK-DAG: note: invalid operand for instruction20# 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]22 23SUBs r0, #0xFFFFFEFF24# CHECK: error: invalid instruction, any one of the following would fix this:25# CHECK-DAG: note: invalid operand for instruction26# CHECK-DAG: note: operand must be an immediate in the range [0,255]27 28ORRs r0, r1, #0xFFFFFF0029# CHECK: error: invalid instruction, any one of the following would fix this:30# CHECK-DAG: note: instruction requires: thumb231# CHECK-DAG: note: too many operands for instruction32 33ORNs r0, r1, #0xFFFFFF0034# CHECK: error: instruction requires: thumb235