xref: /aosp_15_r20/external/llvm/test/MC/Disassembler/AArch64/arm64-logical.txt (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker# RUN: llvm-mc -triple arm64-apple-darwin --disassemble < %s | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Worker#==---------------------------------------------------------------------------==
4*9880d681SAndroid Build Coastguard Worker# 5.4.2 Logical (immediate)
5*9880d681SAndroid Build Coastguard Worker#==---------------------------------------------------------------------------==
6*9880d681SAndroid Build Coastguard Worker
7*9880d681SAndroid Build Coastguard Worker0x00 0x00 0x00 0x12
8*9880d681SAndroid Build Coastguard Worker0x00 0x00 0x40 0x92
9*9880d681SAndroid Build Coastguard Worker0x41 0x0c 0x00 0x12
10*9880d681SAndroid Build Coastguard Worker0x41 0x0c 0x40 0x92
11*9880d681SAndroid Build Coastguard Worker0xbf 0xec 0x7c 0x92
12*9880d681SAndroid Build Coastguard Worker0x00 0x00 0x00 0x72
13*9880d681SAndroid Build Coastguard Worker0x00 0x00 0x40 0xf2
14*9880d681SAndroid Build Coastguard Worker0x41 0x0c 0x00 0x72
15*9880d681SAndroid Build Coastguard Worker0x41 0x0c 0x40 0xf2
16*9880d681SAndroid Build Coastguard Worker0x5f 0x0c 0x40 0xf2
17*9880d681SAndroid Build Coastguard Worker
18*9880d681SAndroid Build Coastguard Worker# CHECK: and  w0, w0, #0x1
19*9880d681SAndroid Build Coastguard Worker# CHECK: and  x0, x0, #0x1
20*9880d681SAndroid Build Coastguard Worker# CHECK: and  w1, w2, #0xf
21*9880d681SAndroid Build Coastguard Worker# CHECK: and  x1, x2, #0xf
22*9880d681SAndroid Build Coastguard Worker# CHECK: and  sp, x5, #0xfffffffffffffff0
23*9880d681SAndroid Build Coastguard Worker# CHECK: ands w0, w0, #0x1
24*9880d681SAndroid Build Coastguard Worker# CHECK: ands x0, x0, #0x1
25*9880d681SAndroid Build Coastguard Worker# CHECK: ands w1, w2, #0xf
26*9880d681SAndroid Build Coastguard Worker# CHECK: ands x1, x2, #0xf
27*9880d681SAndroid Build Coastguard Worker# CHECK: tst x2, #0xf
28*9880d681SAndroid Build Coastguard Worker
29*9880d681SAndroid Build Coastguard Worker0x41 0x00 0x12 0x52
30*9880d681SAndroid Build Coastguard Worker0x41 0x00 0x71 0xd2
31*9880d681SAndroid Build Coastguard Worker0x5f 0x00 0x71 0xd2
32*9880d681SAndroid Build Coastguard Worker
33*9880d681SAndroid Build Coastguard Worker# CHECK: eor w1, w2, #0x4000
34*9880d681SAndroid Build Coastguard Worker# CHECK: eor x1, x2, #0x8000
35*9880d681SAndroid Build Coastguard Worker# CHECK: eor sp, x2, #0x8000
36*9880d681SAndroid Build Coastguard Worker
37*9880d681SAndroid Build Coastguard Worker0x41 0x00 0x12 0x32
38*9880d681SAndroid Build Coastguard Worker0x41 0x00 0x71 0xb2
39*9880d681SAndroid Build Coastguard Worker0x5f 0x00 0x71 0xb2
40*9880d681SAndroid Build Coastguard Worker
41*9880d681SAndroid Build Coastguard Worker# CHECK: orr w1, w2, #0x4000
42*9880d681SAndroid Build Coastguard Worker# CHECK: orr x1, x2, #0x8000
43*9880d681SAndroid Build Coastguard Worker# CHECK: orr sp, x2, #0x8000
44*9880d681SAndroid Build Coastguard Worker
45*9880d681SAndroid Build Coastguard Worker#==---------------------------------------------------------------------------==
46*9880d681SAndroid Build Coastguard Worker# 5.5.3 Logical (shifted register)
47*9880d681SAndroid Build Coastguard Worker#==---------------------------------------------------------------------------==
48*9880d681SAndroid Build Coastguard Worker
49*9880d681SAndroid Build Coastguard Worker0x41 0x00 0x03 0x0a
50*9880d681SAndroid Build Coastguard Worker0x41 0x00 0x03 0x8a
51*9880d681SAndroid Build Coastguard Worker0x41 0x08 0x03 0x0a
52*9880d681SAndroid Build Coastguard Worker0x41 0x08 0x03 0x8a
53*9880d681SAndroid Build Coastguard Worker0x41 0x08 0x43 0x0a
54*9880d681SAndroid Build Coastguard Worker0x41 0x08 0x43 0x8a
55*9880d681SAndroid Build Coastguard Worker0x41 0x08 0x83 0x0a
56*9880d681SAndroid Build Coastguard Worker0x41 0x08 0x83 0x8a
57*9880d681SAndroid Build Coastguard Worker0x41 0x08 0xc3 0x0a
58*9880d681SAndroid Build Coastguard Worker0x41 0x08 0xc3 0x8a
59*9880d681SAndroid Build Coastguard Worker
60*9880d681SAndroid Build Coastguard Worker# CHECK: and  w1, w2, w3
61*9880d681SAndroid Build Coastguard Worker# CHECK: and  x1, x2, x3
62*9880d681SAndroid Build Coastguard Worker# CHECK: and  w1, w2, w3, lsl #2
63*9880d681SAndroid Build Coastguard Worker# CHECK: and  x1, x2, x3, lsl #2
64*9880d681SAndroid Build Coastguard Worker# CHECK: and  w1, w2, w3, lsr #2
65*9880d681SAndroid Build Coastguard Worker# CHECK: and  x1, x2, x3, lsr #2
66*9880d681SAndroid Build Coastguard Worker# CHECK: and  w1, w2, w3, asr #2
67*9880d681SAndroid Build Coastguard Worker# CHECK: and  x1, x2, x3, asr #2
68*9880d681SAndroid Build Coastguard Worker# CHECK: and  w1, w2, w3, ror #2
69*9880d681SAndroid Build Coastguard Worker# CHECK: and  x1, x2, x3, ror #2
70*9880d681SAndroid Build Coastguard Worker
71*9880d681SAndroid Build Coastguard Worker0x41 0x00 0x03 0x6a
72*9880d681SAndroid Build Coastguard Worker0x41 0x00 0x03 0xea
73*9880d681SAndroid Build Coastguard Worker0x41 0x08 0x03 0x6a
74*9880d681SAndroid Build Coastguard Worker0x41 0x08 0x03 0xea
75*9880d681SAndroid Build Coastguard Worker0x41 0x08 0x43 0x6a
76*9880d681SAndroid Build Coastguard Worker0x41 0x08 0x43 0xea
77*9880d681SAndroid Build Coastguard Worker0x41 0x08 0x83 0x6a
78*9880d681SAndroid Build Coastguard Worker0x41 0x08 0x83 0xea
79*9880d681SAndroid Build Coastguard Worker0x41 0x08 0xc3 0x6a
80*9880d681SAndroid Build Coastguard Worker0x41 0x08 0xc3 0xea
81*9880d681SAndroid Build Coastguard Worker
82*9880d681SAndroid Build Coastguard Worker# CHECK: ands w1, w2, w3
83*9880d681SAndroid Build Coastguard Worker# CHECK: ands x1, x2, x3
84*9880d681SAndroid Build Coastguard Worker# CHECK: ands w1, w2, w3, lsl #2
85*9880d681SAndroid Build Coastguard Worker# CHECK: ands x1, x2, x3, lsl #2
86*9880d681SAndroid Build Coastguard Worker# CHECK: ands w1, w2, w3, lsr #2
87*9880d681SAndroid Build Coastguard Worker# CHECK: ands x1, x2, x3, lsr #2
88*9880d681SAndroid Build Coastguard Worker# CHECK: ands w1, w2, w3, asr #2
89*9880d681SAndroid Build Coastguard Worker# CHECK: ands x1, x2, x3, asr #2
90*9880d681SAndroid Build Coastguard Worker# CHECK: ands w1, w2, w3, ror #2
91*9880d681SAndroid Build Coastguard Worker# CHECK: ands x1, x2, x3, ror #2
92*9880d681SAndroid Build Coastguard Worker
93*9880d681SAndroid Build Coastguard Worker0x41 0x00 0x23 0x0a
94*9880d681SAndroid Build Coastguard Worker0x41 0x00 0x23 0x8a
95*9880d681SAndroid Build Coastguard Worker0x41 0x0c 0x23 0x0a
96*9880d681SAndroid Build Coastguard Worker0x41 0x0c 0x23 0x8a
97*9880d681SAndroid Build Coastguard Worker0x41 0x0c 0x63 0x0a
98*9880d681SAndroid Build Coastguard Worker0x41 0x0c 0x63 0x8a
99*9880d681SAndroid Build Coastguard Worker0x41 0x0c 0xa3 0x0a
100*9880d681SAndroid Build Coastguard Worker0x41 0x0c 0xa3 0x8a
101*9880d681SAndroid Build Coastguard Worker0x41 0x0c 0xe3 0x0a
102*9880d681SAndroid Build Coastguard Worker0x41 0x0c 0xe3 0x8a
103*9880d681SAndroid Build Coastguard Worker
104*9880d681SAndroid Build Coastguard Worker# CHECK: bic w1, w2, w3
105*9880d681SAndroid Build Coastguard Worker# CHECK: bic x1, x2, x3
106*9880d681SAndroid Build Coastguard Worker# CHECK: bic w1, w2, w3, lsl #3
107*9880d681SAndroid Build Coastguard Worker# CHECK: bic x1, x2, x3, lsl #3
108*9880d681SAndroid Build Coastguard Worker# CHECK: bic w1, w2, w3, lsr #3
109*9880d681SAndroid Build Coastguard Worker# CHECK: bic x1, x2, x3, lsr #3
110*9880d681SAndroid Build Coastguard Worker# CHECK: bic w1, w2, w3, asr #3
111*9880d681SAndroid Build Coastguard Worker# CHECK: bic x1, x2, x3, asr #3
112*9880d681SAndroid Build Coastguard Worker# CHECK: bic w1, w2, w3, ror #3
113*9880d681SAndroid Build Coastguard Worker# CHECK: bic x1, x2, x3, ror #3
114*9880d681SAndroid Build Coastguard Worker
115*9880d681SAndroid Build Coastguard Worker0x41 0x00 0x23 0x6a
116*9880d681SAndroid Build Coastguard Worker0x41 0x00 0x23 0xea
117*9880d681SAndroid Build Coastguard Worker0x41 0x0c 0x23 0x6a
118*9880d681SAndroid Build Coastguard Worker0x41 0x0c 0x23 0xea
119*9880d681SAndroid Build Coastguard Worker0x41 0x0c 0x63 0x6a
120*9880d681SAndroid Build Coastguard Worker0x41 0x0c 0x63 0xea
121*9880d681SAndroid Build Coastguard Worker0x41 0x0c 0xa3 0x6a
122*9880d681SAndroid Build Coastguard Worker0x41 0x0c 0xa3 0xea
123*9880d681SAndroid Build Coastguard Worker0x41 0x0c 0xe3 0x6a
124*9880d681SAndroid Build Coastguard Worker0x41 0x0c 0xe3 0xea
125*9880d681SAndroid Build Coastguard Worker
126*9880d681SAndroid Build Coastguard Worker# CHECK: bics w1, w2, w3
127*9880d681SAndroid Build Coastguard Worker# CHECK: bics x1, x2, x3
128*9880d681SAndroid Build Coastguard Worker# CHECK: bics w1, w2, w3, lsl #3
129*9880d681SAndroid Build Coastguard Worker# CHECK: bics x1, x2, x3, lsl #3
130*9880d681SAndroid Build Coastguard Worker# CHECK: bics w1, w2, w3, lsr #3
131*9880d681SAndroid Build Coastguard Worker# CHECK: bics x1, x2, x3, lsr #3
132*9880d681SAndroid Build Coastguard Worker# CHECK: bics w1, w2, w3, asr #3
133*9880d681SAndroid Build Coastguard Worker# CHECK: bics x1, x2, x3, asr #3
134*9880d681SAndroid Build Coastguard Worker# CHECK: bics w1, w2, w3, ror #3
135*9880d681SAndroid Build Coastguard Worker# CHECK: bics x1, x2, x3, ror #3
136*9880d681SAndroid Build Coastguard Worker
137*9880d681SAndroid Build Coastguard Worker0x41 0x00 0x23 0x4a
138*9880d681SAndroid Build Coastguard Worker0x41 0x00 0x23 0xca
139*9880d681SAndroid Build Coastguard Worker0x41 0x10 0x23 0x4a
140*9880d681SAndroid Build Coastguard Worker0x41 0x10 0x23 0xca
141*9880d681SAndroid Build Coastguard Worker0x41 0x10 0x63 0x4a
142*9880d681SAndroid Build Coastguard Worker0x41 0x10 0x63 0xca
143*9880d681SAndroid Build Coastguard Worker0x41 0x10 0xa3 0x4a
144*9880d681SAndroid Build Coastguard Worker0x41 0x10 0xa3 0xca
145*9880d681SAndroid Build Coastguard Worker0x41 0x10 0xe3 0x4a
146*9880d681SAndroid Build Coastguard Worker0x41 0x10 0xe3 0xca
147*9880d681SAndroid Build Coastguard Worker
148*9880d681SAndroid Build Coastguard Worker# CHECK: eon w1, w2, w3
149*9880d681SAndroid Build Coastguard Worker# CHECK: eon x1, x2, x3
150*9880d681SAndroid Build Coastguard Worker# CHECK: eon w1, w2, w3, lsl #4
151*9880d681SAndroid Build Coastguard Worker# CHECK: eon x1, x2, x3, lsl #4
152*9880d681SAndroid Build Coastguard Worker# CHECK: eon w1, w2, w3, lsr #4
153*9880d681SAndroid Build Coastguard Worker# CHECK: eon x1, x2, x3, lsr #4
154*9880d681SAndroid Build Coastguard Worker# CHECK: eon w1, w2, w3, asr #4
155*9880d681SAndroid Build Coastguard Worker# CHECK: eon x1, x2, x3, asr #4
156*9880d681SAndroid Build Coastguard Worker# CHECK: eon w1, w2, w3, ror #4
157*9880d681SAndroid Build Coastguard Worker# CHECK: eon x1, x2, x3, ror #4
158*9880d681SAndroid Build Coastguard Worker
159*9880d681SAndroid Build Coastguard Worker0x41 0x00 0x03 0x4a
160*9880d681SAndroid Build Coastguard Worker0x41 0x00 0x03 0xca
161*9880d681SAndroid Build Coastguard Worker0x41 0x14 0x03 0x4a
162*9880d681SAndroid Build Coastguard Worker0x41 0x14 0x03 0xca
163*9880d681SAndroid Build Coastguard Worker0x41 0x14 0x43 0x4a
164*9880d681SAndroid Build Coastguard Worker0x41 0x14 0x43 0xca
165*9880d681SAndroid Build Coastguard Worker0x41 0x14 0x83 0x4a
166*9880d681SAndroid Build Coastguard Worker0x41 0x14 0x83 0xca
167*9880d681SAndroid Build Coastguard Worker0x41 0x14 0xc3 0x4a
168*9880d681SAndroid Build Coastguard Worker0x41 0x14 0xc3 0xca
169*9880d681SAndroid Build Coastguard Worker
170*9880d681SAndroid Build Coastguard Worker# CHECK: eor w1, w2, w3
171*9880d681SAndroid Build Coastguard Worker# CHECK: eor x1, x2, x3
172*9880d681SAndroid Build Coastguard Worker# CHECK: eor w1, w2, w3, lsl #5
173*9880d681SAndroid Build Coastguard Worker# CHECK: eor x1, x2, x3, lsl #5
174*9880d681SAndroid Build Coastguard Worker# CHECK: eor w1, w2, w3, lsr #5
175*9880d681SAndroid Build Coastguard Worker# CHECK: eor x1, x2, x3, lsr #5
176*9880d681SAndroid Build Coastguard Worker# CHECK: eor w1, w2, w3, asr #5
177*9880d681SAndroid Build Coastguard Worker# CHECK: eor x1, x2, x3, asr #5
178*9880d681SAndroid Build Coastguard Worker# CHECK: eor w1, w2, w3, ror #5
179*9880d681SAndroid Build Coastguard Worker# CHECK: eor x1, x2, x3, ror #5
180*9880d681SAndroid Build Coastguard Worker
181*9880d681SAndroid Build Coastguard Worker0x41 0x00 0x03 0x2a
182*9880d681SAndroid Build Coastguard Worker0x41 0x00 0x03 0xaa
183*9880d681SAndroid Build Coastguard Worker0x41 0x18 0x03 0x2a
184*9880d681SAndroid Build Coastguard Worker0x41 0x18 0x03 0xaa
185*9880d681SAndroid Build Coastguard Worker0x41 0x18 0x43 0x2a
186*9880d681SAndroid Build Coastguard Worker0x41 0x18 0x43 0xaa
187*9880d681SAndroid Build Coastguard Worker0x41 0x18 0x83 0x2a
188*9880d681SAndroid Build Coastguard Worker0x41 0x18 0x83 0xaa
189*9880d681SAndroid Build Coastguard Worker0x41 0x18 0xc3 0x2a
190*9880d681SAndroid Build Coastguard Worker0x41 0x18 0xc3 0xaa
191*9880d681SAndroid Build Coastguard Worker
192*9880d681SAndroid Build Coastguard Worker# CHECK: orr w1, w2, w3
193*9880d681SAndroid Build Coastguard Worker# CHECK: orr x1, x2, x3
194*9880d681SAndroid Build Coastguard Worker# CHECK: orr w1, w2, w3, lsl #6
195*9880d681SAndroid Build Coastguard Worker# CHECK: orr x1, x2, x3, lsl #6
196*9880d681SAndroid Build Coastguard Worker# CHECK: orr w1, w2, w3, lsr #6
197*9880d681SAndroid Build Coastguard Worker# CHECK: orr x1, x2, x3, lsr #6
198*9880d681SAndroid Build Coastguard Worker# CHECK: orr w1, w2, w3, asr #6
199*9880d681SAndroid Build Coastguard Worker# CHECK: orr x1, x2, x3, asr #6
200*9880d681SAndroid Build Coastguard Worker# CHECK: orr w1, w2, w3, ror #6
201*9880d681SAndroid Build Coastguard Worker# CHECK: orr x1, x2, x3, ror #6
202*9880d681SAndroid Build Coastguard Worker
203*9880d681SAndroid Build Coastguard Worker0x41 0x00 0x23 0x2a
204*9880d681SAndroid Build Coastguard Worker0x41 0x00 0x23 0xaa
205*9880d681SAndroid Build Coastguard Worker0x41 0x1c 0x23 0x2a
206*9880d681SAndroid Build Coastguard Worker0x41 0x1c 0x23 0xaa
207*9880d681SAndroid Build Coastguard Worker0x41 0x1c 0x63 0x2a
208*9880d681SAndroid Build Coastguard Worker0x41 0x1c 0x63 0xaa
209*9880d681SAndroid Build Coastguard Worker0x41 0x1c 0xa3 0x2a
210*9880d681SAndroid Build Coastguard Worker0x41 0x1c 0xa3 0xaa
211*9880d681SAndroid Build Coastguard Worker0x41 0x1c 0xe3 0x2a
212*9880d681SAndroid Build Coastguard Worker0x41 0x1c 0xe3 0xaa
213*9880d681SAndroid Build Coastguard Worker
214*9880d681SAndroid Build Coastguard Worker# CHECK: orn w1, w2, w3
215*9880d681SAndroid Build Coastguard Worker# CHECK: orn x1, x2, x3
216*9880d681SAndroid Build Coastguard Worker# CHECK: orn w1, w2, w3, lsl #7
217*9880d681SAndroid Build Coastguard Worker# CHECK: orn x1, x2, x3, lsl #7
218*9880d681SAndroid Build Coastguard Worker# CHECK: orn w1, w2, w3, lsr #7
219*9880d681SAndroid Build Coastguard Worker# CHECK: orn x1, x2, x3, lsr #7
220*9880d681SAndroid Build Coastguard Worker# CHECK: orn w1, w2, w3, asr #7
221*9880d681SAndroid Build Coastguard Worker# CHECK: orn x1, x2, x3, asr #7
222*9880d681SAndroid Build Coastguard Worker# CHECK: orn w1, w2, w3, ror #7
223*9880d681SAndroid Build Coastguard Worker# CHECK: orn x1, x2, x3, ror #7
224