1 @ RUN
: llvm-mc
-triple thumbv7-apple-darwin
-filetype
=obj
-o
%t.o
%s
2 @ RUN
: llvm-objdump
-triple thumbv7-apple-darwin
-d
%t.o | FileCheck
%s
8 cbnz
r2, L1 @ this can
't be encoded, must turn into a nop
15 cbz r2, L3 @ this can't be encoded
, must turn into
a nop
23 @ CHECK
: 0: 02 eb
03 01 add.w
r1, r2, r3
25 @ CHECK
: 6: 05 eb
06 04 add.w
r4, r5, r6
26 @ CHECK
: a: 0a b9 cbnz
r2, #2
27 @ CHECK
: c
: a8 eb
09 07 sub.w
r7, r8, r9
28 @ CHECK
: 10: 08 eb
09 07 add.w
r7, r8, r9
29 @ CHECK
: 14: 00 bf nop
30 @ CHECK
: 16: 0b eb
0c
0a add.w
r10, r11, r12
31 @ CHECK
: 1a: 0a b1 cbz
r2, #2
32 @ CHECK
: 1c
: a8 eb
09 07 sub.w
r7, r8, r9
33 @ CHECK
: 20: 04 eb
05 03 add.w
r3, r4, r5