summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/ARM/negative-immediates-thumb1-fail.s
blob: 3648721203a0e947903de5687c37875ed20dd676 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# RUN: not llvm-mc -triple thumbv7 -mcpu=cortex-m0 %s 2>&1 | FileCheck %s

.thumb

ADDs r1, r0, #0xFFFFFFF5
# CHECK: error: instruction requires: arm-mode

ADDs r0, #0xFFFFFEFF
# CHECK: error: immediate operand must be in the range [0,255]

SUBs r1, r0, #0xFFFFFFF5
# CHECK: error: instruction requires: arm-mode

SUBs r0, #0xFFFFFEFF
# CHECK: error: immediate operand must be in the range [0,255]

ORRs r0, r1, #0xFFFFFF00
# CHECK: error: instruction requires: thumb2
ORNs r0, r1, #0xFFFFFF00
# CHECK: error: instruction requires: thumb2
OpenPOWER on IntegriCloud