2 @ RUN
: llvm-mc
< %s
-triple
=thumbv7a-linux-gnueabi
-filetype
=obj
-o
- \
3 @ RUN
: | llvm-objdump
--disassemble
-triple
=thumbv7a-linux-gnueabi
- | FileCheck
%s
7 @ Thumb2 modified immediate instructions
17 @CHECK
: add.w
r1, r1, #255
18 @CHECK
: sub.w
r1, r2, #16711935
19 @CHECK
: cmp.w
r2, #4278255360
20 @CHECK
: and r4, r4, #303174162
21 @CHECK
: orr
r8, r9, #2852126720
22 @CHECK
: teq.w
r1, #1426063360
23 @CHECK
: tst.w
r1, #713031680
24 @CHECK
: sbc
r1, r1, #2785280
25 @CHECK
: adc
r1, r0, #340
28 sub r3, r3, #.L2 - .L1
30 @CHECK
: sub.w
r3, r3, #4
32 @ mov without
:upper16
: or :lower16
: should match mov with modified immediate
34 @CHECK
: mov.w
r1, #303174162
36 @ Modified immediate constants