xref: /aosp_15_r20/external/llvm/test/MC/Disassembler/X86/intel-syntax.txt (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker# RUN: llvm-mc --disassemble %s -triple=x86_64-apple-darwin9 --output-asm-variant=1 | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Worker# CHECK: movsb
4*9880d681SAndroid Build Coastguard Worker0xa4
5*9880d681SAndroid Build Coastguard Worker
6*9880d681SAndroid Build Coastguard Worker# CHECK: movsw
7*9880d681SAndroid Build Coastguard Worker0x66 0xa5
8*9880d681SAndroid Build Coastguard Worker
9*9880d681SAndroid Build Coastguard Worker# CHECK: movsd
10*9880d681SAndroid Build Coastguard Worker0xa5
11*9880d681SAndroid Build Coastguard Worker
12*9880d681SAndroid Build Coastguard Worker# CHECK: movsq
13*9880d681SAndroid Build Coastguard Worker0x48 0xa5
14*9880d681SAndroid Build Coastguard Worker
15*9880d681SAndroid Build Coastguard Worker# CHECK: pop fs
16*9880d681SAndroid Build Coastguard Worker0x0f 0xa1
17*9880d681SAndroid Build Coastguard Worker
18*9880d681SAndroid Build Coastguard Worker# CHECK: pop gs
19*9880d681SAndroid Build Coastguard Worker0x0f 0xa9
20*9880d681SAndroid Build Coastguard Worker
21*9880d681SAndroid Build Coastguard Worker# CHECK: in al, dx
22*9880d681SAndroid Build Coastguard Worker0xec
23*9880d681SAndroid Build Coastguard Worker
24*9880d681SAndroid Build Coastguard Worker# CHECK: nop
25*9880d681SAndroid Build Coastguard Worker0x90
26*9880d681SAndroid Build Coastguard Worker
27*9880d681SAndroid Build Coastguard Worker# CHECK: xchg eax, r8d
28*9880d681SAndroid Build Coastguard Worker0x41 0x90
29*9880d681SAndroid Build Coastguard Worker
30*9880d681SAndroid Build Coastguard Worker# CHECK: xchg rax, r8
31*9880d681SAndroid Build Coastguard Worker0x49 0x90
32*9880d681SAndroid Build Coastguard Worker
33*9880d681SAndroid Build Coastguard Worker# CHECK: add al, 0
34*9880d681SAndroid Build Coastguard Worker0x04 0x00
35*9880d681SAndroid Build Coastguard Worker
36*9880d681SAndroid Build Coastguard Worker# CHECK: add ax, 0
37*9880d681SAndroid Build Coastguard Worker0x66 0x05 0x00 0x00
38*9880d681SAndroid Build Coastguard Worker
39*9880d681SAndroid Build Coastguard Worker# CHECK: add eax, 0
40*9880d681SAndroid Build Coastguard Worker0x05 0x00 0x00 0x00 0x00
41*9880d681SAndroid Build Coastguard Worker
42*9880d681SAndroid Build Coastguard Worker# CHECK: add rax, 0
43*9880d681SAndroid Build Coastguard Worker0x48 0x05 0x00 0x00 0x00 0x00
44*9880d681SAndroid Build Coastguard Worker
45*9880d681SAndroid Build Coastguard Worker# CHECK: adc al, 0
46*9880d681SAndroid Build Coastguard Worker0x14 0x00
47*9880d681SAndroid Build Coastguard Worker
48*9880d681SAndroid Build Coastguard Worker# CHECK: adc ax, 0
49*9880d681SAndroid Build Coastguard Worker0x66 0x15 0x00 0x00
50*9880d681SAndroid Build Coastguard Worker
51*9880d681SAndroid Build Coastguard Worker# CHECK: adc eax, 0
52*9880d681SAndroid Build Coastguard Worker0x15 0x00 0x00 0x00 0x00
53*9880d681SAndroid Build Coastguard Worker
54*9880d681SAndroid Build Coastguard Worker# CHECK: adc rax, 0
55*9880d681SAndroid Build Coastguard Worker0x48 0x15 0x00 0x00 0x00 0x00
56*9880d681SAndroid Build Coastguard Worker
57*9880d681SAndroid Build Coastguard Worker# CHECK: cmp al, 0
58*9880d681SAndroid Build Coastguard Worker0x3c 0x00
59*9880d681SAndroid Build Coastguard Worker
60*9880d681SAndroid Build Coastguard Worker# CHECK: cmp ax, 0
61*9880d681SAndroid Build Coastguard Worker0x66 0x3d 0x00 0x00
62*9880d681SAndroid Build Coastguard Worker
63*9880d681SAndroid Build Coastguard Worker# CHECK: cmp eax, 0
64*9880d681SAndroid Build Coastguard Worker0x3d 0x00 0x00 0x00 0x00
65*9880d681SAndroid Build Coastguard Worker
66*9880d681SAndroid Build Coastguard Worker# CHECK: cmp rax, 0
67*9880d681SAndroid Build Coastguard Worker0x48 0x3d 0x00 0x00 0x00 0x00
68*9880d681SAndroid Build Coastguard Worker
69*9880d681SAndroid Build Coastguard Worker# CHECK: test al, 0
70*9880d681SAndroid Build Coastguard Worker0xa8 0x00
71*9880d681SAndroid Build Coastguard Worker
72*9880d681SAndroid Build Coastguard Worker# CHECK: test ax, 0
73*9880d681SAndroid Build Coastguard Worker0x66 0xa9 0x00 0x00
74*9880d681SAndroid Build Coastguard Worker
75*9880d681SAndroid Build Coastguard Worker# CHECK: test eax, 0
76*9880d681SAndroid Build Coastguard Worker0xa9 0x00 0x00 0x00 0x00
77*9880d681SAndroid Build Coastguard Worker
78*9880d681SAndroid Build Coastguard Worker# CHECK: test rax, 0
79*9880d681SAndroid Build Coastguard Worker0x48 0xa9 0x00 0x00 0x00 0x00
80*9880d681SAndroid Build Coastguard Worker
81*9880d681SAndroid Build Coastguard Worker# CHECK: sysret
82*9880d681SAndroid Build Coastguard Worker0x48 0x0f 0x07
83*9880d681SAndroid Build Coastguard Worker
84*9880d681SAndroid Build Coastguard Worker# CHECK: sysret
85*9880d681SAndroid Build Coastguard Worker0x0f 0x07
86*9880d681SAndroid Build Coastguard Worker
87*9880d681SAndroid Build Coastguard Worker# CHECK: sysexit
88*9880d681SAndroid Build Coastguard Worker0x48 0x0f 0x35
89*9880d681SAndroid Build Coastguard Worker
90*9880d681SAndroid Build Coastguard Worker# CHECK: sysexit
91*9880d681SAndroid Build Coastguard Worker0x0f 0x35
92*9880d681SAndroid Build Coastguard Worker
93*9880d681SAndroid Build Coastguard Worker# CHECK: iret
94*9880d681SAndroid Build Coastguard Worker0x66 0xcf
95*9880d681SAndroid Build Coastguard Worker
96*9880d681SAndroid Build Coastguard Worker# CHECK: iretd
97*9880d681SAndroid Build Coastguard Worker0xcf
98*9880d681SAndroid Build Coastguard Worker
99*9880d681SAndroid Build Coastguard Worker# CHECK: iretq
100*9880d681SAndroid Build Coastguard Worker0x48 0xcf
101*9880d681SAndroid Build Coastguard Worker
102*9880d681SAndroid Build Coastguard Worker# CHECK: ret
103*9880d681SAndroid Build Coastguard Worker0x66 0xc3
104*9880d681SAndroid Build Coastguard Worker
105*9880d681SAndroid Build Coastguard Worker# CHECK: retf
106*9880d681SAndroid Build Coastguard Worker0x66 0xcb
107*9880d681SAndroid Build Coastguard Worker
108*9880d681SAndroid Build Coastguard Worker# CHECK: vshufpd xmm0, xmm1, xmm2, 1
109*9880d681SAndroid Build Coastguard Worker0xc5 0xf1 0xc6 0xc2 0x01
110*9880d681SAndroid Build Coastguard Worker
111*9880d681SAndroid Build Coastguard Worker# CHECK: vpgatherqq ymm2, ymmword ptr [rdi + 2*ymm1], ymm0
112*9880d681SAndroid Build Coastguard Worker0xc4 0xe2 0xfd 0x91 0x14 0x4f
113*9880d681SAndroid Build Coastguard Worker
114*9880d681SAndroid Build Coastguard Worker# CHECK: vpgatherdd xmm10, xmmword ptr [r15 + 2*xmm9], xmm8
115*9880d681SAndroid Build Coastguard Worker0xc4 0x02 0x39 0x90 0x14 0x4f
116*9880d681SAndroid Build Coastguard Worker
117*9880d681SAndroid Build Coastguard Worker# CHECK: xsave64 opaque ptr [rax]
118*9880d681SAndroid Build Coastguard Worker0x48 0x0f 0xae 0x20
119*9880d681SAndroid Build Coastguard Worker
120*9880d681SAndroid Build Coastguard Worker# CHECK: xrstor64 opaque ptr [rax]
121*9880d681SAndroid Build Coastguard Worker0x48 0x0f 0xae 0x28
122*9880d681SAndroid Build Coastguard Worker
123*9880d681SAndroid Build Coastguard Worker# CHECK: xsaveopt64 opaque ptr [rax]
124*9880d681SAndroid Build Coastguard Worker0x48 0x0f 0xae 0x30
125*9880d681SAndroid Build Coastguard Worker
126*9880d681SAndroid Build Coastguard Worker# CHECK: movabs al, byte ptr [-6066930261531658096]
127*9880d681SAndroid Build Coastguard Worker0xa0 0x90 0x78 0x56 0x34 0x12 0xef 0xcd 0xab
128*9880d681SAndroid Build Coastguard Worker
129*9880d681SAndroid Build Coastguard Worker# CHECK: movabs al, byte ptr [-6066930261531658096]
130*9880d681SAndroid Build Coastguard Worker0x48 0xa0 0x90 0x78 0x56 0x34 0x12 0xef 0xcd 0xab
131*9880d681SAndroid Build Coastguard Worker
132*9880d681SAndroid Build Coastguard Worker# CHECK: movabs ax, word ptr [-6066930261531658096]
133*9880d681SAndroid Build Coastguard Worker0x66 0xa1 0x90 0x78 0x56 0x34 0x12 0xef 0xcd 0xab
134*9880d681SAndroid Build Coastguard Worker
135*9880d681SAndroid Build Coastguard Worker# CHECK: movabs eax, dword ptr [-6066930261531658096]
136*9880d681SAndroid Build Coastguard Worker0xa1 0x90 0x78 0x56 0x34 0x12 0xef 0xcd 0xab
137*9880d681SAndroid Build Coastguard Worker
138*9880d681SAndroid Build Coastguard Worker# CHECK: movabs rax, qword ptr [-6066930261531658096]
139*9880d681SAndroid Build Coastguard Worker0x48 0xa1 0x90 0x78 0x56 0x34 0x12 0xef 0xcd 0xab
140*9880d681SAndroid Build Coastguard Worker
141*9880d681SAndroid Build Coastguard Worker# CHECK: movabs byte ptr [-6066930261531658096], al
142*9880d681SAndroid Build Coastguard Worker0xa2 0x90 0x78 0x56 0x34 0x12 0xef 0xcd 0xab
143*9880d681SAndroid Build Coastguard Worker
144*9880d681SAndroid Build Coastguard Worker# CHECK: movabs byte ptr [-6066930261531658096], al
145*9880d681SAndroid Build Coastguard Worker0x48 0xa2 0x90 0x78 0x56 0x34 0x12 0xef 0xcd 0xab
146*9880d681SAndroid Build Coastguard Worker
147*9880d681SAndroid Build Coastguard Worker# CHECK: movabs word ptr [-6066930261531658096], ax
148*9880d681SAndroid Build Coastguard Worker0x66 0xa3 0x90 0x78 0x56 0x34 0x12 0xef 0xcd 0xab
149*9880d681SAndroid Build Coastguard Worker
150*9880d681SAndroid Build Coastguard Worker# CHECK: movabs dword ptr [-6066930261531658096], eax
151*9880d681SAndroid Build Coastguard Worker0xa3 0x90 0x78 0x56 0x34 0x12 0xef 0xcd 0xab
152*9880d681SAndroid Build Coastguard Worker
153*9880d681SAndroid Build Coastguard Worker# CHECK: movabs qword ptr [-6066930261531658096], rax
154*9880d681SAndroid Build Coastguard Worker0x48 0xa3 0x90 0x78 0x56 0x34 0x12 0xef 0xcd 0xab
155*9880d681SAndroid Build Coastguard Worker
156*9880d681SAndroid Build Coastguard Worker# CHECK: lea	cx, [esp + 4]
157*9880d681SAndroid Build Coastguard Worker0x67 0x66 0x8d 0x4c 0x24 0x04
158*9880d681SAndroid Build Coastguard Worker
159*9880d681SAndroid Build Coastguard Worker# CHECK: lea	ecx, [esp + 4]
160*9880d681SAndroid Build Coastguard Worker0x67 0x8d 0x4c 0x24 0x04
161*9880d681SAndroid Build Coastguard Worker
162*9880d681SAndroid Build Coastguard Worker# CHECK: lea	rcx, [esp + 4]
163*9880d681SAndroid Build Coastguard Worker0x67 0x48 0x8d 0x4c 0x24 0x04
164*9880d681SAndroid Build Coastguard Worker
165*9880d681SAndroid Build Coastguard Worker# CHECK: lea	cx, [rsp + 4]
166*9880d681SAndroid Build Coastguard Worker0x66 0x8d 0x4c 0x24 0x04
167*9880d681SAndroid Build Coastguard Worker
168*9880d681SAndroid Build Coastguard Worker# CHECK: lea	ecx, [rsp + 4]
169*9880d681SAndroid Build Coastguard Worker0x8d 0x4c 0x24 0x04
170*9880d681SAndroid Build Coastguard Worker
171*9880d681SAndroid Build Coastguard Worker# CHECK: lea	rcx, [rsp + 4]
172*9880d681SAndroid Build Coastguard Worker0x48 0x8d 0x4c 0x24 0x04
173*9880d681SAndroid Build Coastguard Worker
174*9880d681SAndroid Build Coastguard Worker
175