llvm.org GIT mirror llvm / release_50 test / MC / ARM / negative-immediates-fail.s
release_50

Tree @release_50 (Download .tar.gz)

negative-immediates-fail.s @release_50raw · history · blame

# RUN: not llvm-mc -triple armv7 %s 2>&1| FileCheck %s

.arm

ADC r0, r1, #0xFFFFFEEE
# CHECK: error: invalid operand for instruction
ADC r0, r1, #0xABFEABFF
# CHECK: error: invalid operand for instruction
ADC r0, r1, #0xFFFFFE02
# CHECK: error: invalid operand for instruction

ADD.W r0, r0, #0xFF01FF01
# CHECK: error: immediate operand must be in the range [0,7]

ORR r0, r1, #0xFFFFFF00
# CHECK: error: instruction requires: thumb2
ORN r0, r1, #0xFFFFFF00
# CHECK: error: instruction requires: thumb2