1 @ RUN
: llvm-mc
-triple arm-unknown-unknown
-show-encoding
< %s | FileCheck
%s
11 @ CHECK
: sub r2, r2, #6 @ encoding: [0x06,0x20,0x42,0xe2]
12 @ CHECK
: sub r2, r2, #6 @ encoding: [0x06,0x20,0x42,0xe2]
13 @ CHECK
: sub r2, r2, r3 @ encoding
: [0x03,0x20,0x42,0xe0]
14 @ CHECK
: sub r2, r2, r3 @ encoding
: [0x03,0x20,0x42,0xe0]
21 @ CHECK
: add r2, r2, #6 @ encoding: [0x06,0x20,0x82,0xe2]
22 @ CHECK
: add r2, r2, #6 @ encoding: [0x06,0x20,0x82,0xe2]
23 @ CHECK
: add r2, r2, r3 @ encoding
: [0x03,0x20,0x82,0xe0]
24 @ CHECK
: add r2, r2, r3 @ encoding
: [0x03,0x20,0x82,0xe0]
31 @ CHECK
: and r2, r2, #6 @ encoding: [0x06,0x20,0x02,0xe2]
32 @ CHECK
: and r2, r2, #6 @ encoding: [0x06,0x20,0x02,0xe2]
33 @ CHECK
: and r2, r2, r3 @ encoding
: [0x03,0x20,0x02,0xe0]
34 @ CHECK
: and r2, r2, r3 @ encoding
: [0x03,0x20,0x02,0xe0]
41 @ CHECK
: orr
r2, r2, #6 @ encoding: [0x06,0x20,0x82,0xe3]
42 @ CHECK
: orr
r2, r2, #6 @ encoding: [0x06,0x20,0x82,0xe3]
43 @ CHECK
: orr
r2, r2, r3 @ encoding
: [0x03,0x20,0x82,0xe1]
44 @ CHECK
: orr
r2, r2, r3 @ encoding
: [0x03,0x20,0x82,0xe1]
51 @ CHECK
: eor
r2, r2, #6 @ encoding: [0x06,0x20,0x22,0xe2]
52 @ CHECK
: eor
r2, r2, #6 @ encoding: [0x06,0x20,0x22,0xe2]
53 @ CHECK
: eor
r2, r2, r3 @ encoding
: [0x03,0x20,0x22,0xe0]
54 @ CHECK
: eor
r2, r2, r3 @ encoding
: [0x03,0x20,0x22,0xe0]
61 @ CHECK
: bic
r2, r2, #6 @ encoding: [0x06,0x20,0xc2,0xe3]
62 @ CHECK
: bic
r2, r2, #6 @ encoding: [0x06,0x20,0xc2,0xe3]
63 @ CHECK
: bic
r2, r2, r3 @ encoding
: [0x03,0x20,0xc2,0xe1]
64 @ CHECK
: bic
r2, r2, r3 @ encoding
: [0x03,0x20,0xc2,0xe1]
67 @ Also check that we handle the predicate
and cc_out operands.
73 @ CHECK
: subseq
r2, r2, #6 @ encoding: [0x06,0x20,0x52,0x02]
74 @ CHECK
: subseq
r2, r2, #6 @ encoding: [0x06,0x20,0x52,0x02]
75 @ CHECK
: subseq
r2, r2, r3 @ encoding
: [0x03,0x20,0x52,0x00]
76 @ CHECK
: subseq
r2, r2, r3 @ encoding
: [0x03,0x20,0x52,0x00]
83 @ CHECK
: addseq
r2, r2, #6 @ encoding: [0x06,0x20,0x92,0x02]
84 @ CHECK
: addseq
r2, r2, #6 @ encoding: [0x06,0x20,0x92,0x02]
85 @ CHECK
: addseq
r2, r2, r3 @ encoding
: [0x03,0x20,0x92,0x00]
86 @ CHECK
: addseq
r2, r2, r3 @ encoding
: [0x03,0x20,0x92,0x00]
93 @ CHECK
: andseq
r2, r2, #6 @ encoding: [0x06,0x20,0x12,0x02]
94 @ CHECK
: andseq
r2, r2, #6 @ encoding: [0x06,0x20,0x12,0x02]
95 @ CHECK
: andseq
r2, r2, r3 @ encoding
: [0x03,0x20,0x12,0x00]
96 @ CHECK
: andseq
r2, r2, r3 @ encoding
: [0x03,0x20,0x12,0x00]
103 @ CHECK
: orrseq
r2, r2, #6 @ encoding: [0x06,0x20,0x92,0x03]
104 @ CHECK
: orrseq
r2, r2, #6 @ encoding: [0x06,0x20,0x92,0x03]
105 @ CHECK
: orrseq
r2, r2, r3 @ encoding
: [0x03,0x20,0x92,0x01]
106 @ CHECK
: orrseq
r2, r2, r3 @ encoding
: [0x03,0x20,0x92,0x01]
113 @ CHECK
: eorseq
r2, r2, #6 @ encoding: [0x06,0x20,0x32,0x02]
114 @ CHECK
: eorseq
r2, r2, #6 @ encoding: [0x06,0x20,0x32,0x02]
115 @ CHECK
: eorseq
r2, r2, r3 @ encoding
: [0x03,0x20,0x32,0x00]
116 @ CHECK
: eorseq
r2, r2, r3 @ encoding
: [0x03,0x20,0x32,0x00]
123 @ CHECK
: bicseq
r2, r2, #6 @ encoding: [0x06,0x20,0xd2,0x03]
124 @ CHECK
: bicseq
r2, r2, #6 @ encoding: [0x06,0x20,0xd2,0x03]
125 @ CHECK
: bicseq
r2, r2, r3 @ encoding
: [0x03,0x20,0xd2,0x01]
126 @ CHECK
: bicseq
r2, r2, r3 @ encoding
: [0x03,0x20,0xd2,0x01]
130 @ CHECK
: adr
r0, #123 @ encoding: [0x7b,0x00,0x8f,0xe2]