• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: llvm-mc --disassemble %s -triple=x86_64-apple-darwin9 --output-asm-variant=1 | FileCheck %s
2
3# CHECK: movsb
40xa4
5
6# CHECK: movsw
70x66 0xa5
8
9# CHECK: movsd
100xa5
11
12# CHECK: movsq
130x48 0xa5
14
15# CHECK: pop fs
160x0f 0xa1
17
18# CHECK: pop gs
190x0f 0xa9
20
21# CHECK: in al, dx
220xec
23
24# CHECK: nop
250x90
26
27# CHECK: xchg eax, r8d
280x41 0x90
29
30# CHECK: xchg rax, r8
310x49 0x90
32
33# CHECK: add al, 0
340x04 0x00
35
36# CHECK: add ax, 0
370x66 0x05 0x00 0x00
38
39# CHECK: add eax, 0
400x05 0x00 0x00 0x00 0x00
41
42# CHECK: add rax, 0
430x48 0x05 0x00 0x00 0x00 0x00
44
45# CHECK: adc al, 0
460x14 0x00
47
48# CHECK: adc ax, 0
490x66 0x15 0x00 0x00
50
51# CHECK: adc eax, 0
520x15 0x00 0x00 0x00 0x00
53
54# CHECK: adc rax, 0
550x48 0x15 0x00 0x00 0x00 0x00
56
57# CHECK: cmp al, 0
580x3c 0x00
59
60# CHECK: cmp ax, 0
610x66 0x3d 0x00 0x00
62
63# CHECK: cmp eax, 0
640x3d 0x00 0x00 0x00 0x00
65
66# CHECK: cmp rax, 0
670x48 0x3d 0x00 0x00 0x00 0x00
68
69# CHECK: test al, 0
700xa8 0x00
71
72# CHECK: test ax, 0
730x66 0xa9 0x00 0x00
74
75# CHECK: test eax, 0
760xa9 0x00 0x00 0x00 0x00
77
78# CHECK: test rax, 0
790x48 0xa9 0x00 0x00 0x00 0x00
80
81# CHECK: sysret
820x48 0x0f 0x07
83
84# CHECK: sysret
850x0f 0x07
86
87# CHECK: sysexit
880x48 0x0f 0x35
89
90# CHECK: sysexit
910x0f 0x35
92
93# CHECK: iret
940x66 0xcf
95
96# CHECK: iretd
970xcf
98
99# CHECK: iretq
1000x48 0xcf
101
102# CHECK: ret
1030x66 0xc3
104
105# CHECK: retf
1060x66 0xcb
107
108# CHECK: vshufpd xmm0, xmm1, xmm2, 1
1090xc5 0xf1 0xc6 0xc2 0x01
110
111# CHECK: vpgatherqq ymm2, ymmword ptr [rdi + 2*ymm1], ymm0
1120xc4 0xe2 0xfd 0x91 0x14 0x4f
113
114# CHECK: vpgatherdd xmm10, xmmword ptr [r15 + 2*xmm9], xmm8
1150xc4 0x02 0x39 0x90 0x14 0x4f
116
117# CHECK: xsave64 opaque ptr [rax]
1180x48 0x0f 0xae 0x20
119
120# CHECK: xrstor64 opaque ptr [rax]
1210x48 0x0f 0xae 0x28
122
123# CHECK: xsaveopt64 opaque ptr [rax]
1240x48 0x0f 0xae 0x30
125
126# CHECK: movabs al, byte ptr [-6066930261531658096]
1270xa0 0x90 0x78 0x56 0x34 0x12 0xef 0xcd 0xab
128
129# CHECK: movabs al, byte ptr [-6066930261531658096]
1300x48 0xa0 0x90 0x78 0x56 0x34 0x12 0xef 0xcd 0xab
131
132# CHECK: movabs ax, word ptr [-6066930261531658096]
1330x66 0xa1 0x90 0x78 0x56 0x34 0x12 0xef 0xcd 0xab
134
135# CHECK: movabs eax, dword ptr [-6066930261531658096]
1360xa1 0x90 0x78 0x56 0x34 0x12 0xef 0xcd 0xab
137
138# CHECK: movabs rax, qword ptr [-6066930261531658096]
1390x48 0xa1 0x90 0x78 0x56 0x34 0x12 0xef 0xcd 0xab
140
141# CHECK: movabs byte ptr [-6066930261531658096], al
1420xa2 0x90 0x78 0x56 0x34 0x12 0xef 0xcd 0xab
143
144# CHECK: movabs byte ptr [-6066930261531658096], al
1450x48 0xa2 0x90 0x78 0x56 0x34 0x12 0xef 0xcd 0xab
146
147# CHECK: movabs word ptr [-6066930261531658096], ax
1480x66 0xa3 0x90 0x78 0x56 0x34 0x12 0xef 0xcd 0xab
149
150# CHECK: movabs dword ptr [-6066930261531658096], eax
1510xa3 0x90 0x78 0x56 0x34 0x12 0xef 0xcd 0xab
152
153# CHECK: movabs qword ptr [-6066930261531658096], rax
1540x48 0xa3 0x90 0x78 0x56 0x34 0x12 0xef 0xcd 0xab
155
156# CHECK: lea	cx, [esp + 4]
1570x67 0x66 0x8d 0x4c 0x24 0x04
158
159# CHECK: lea	ecx, [esp + 4]
1600x67 0x8d 0x4c 0x24 0x04
161
162# CHECK: lea	rcx, [esp + 4]
1630x67 0x48 0x8d 0x4c 0x24 0x04
164
165# CHECK: lea	cx, [rsp + 4]
1660x66 0x8d 0x4c 0x24 0x04
167
168# CHECK: lea	ecx, [rsp + 4]
1690x8d 0x4c 0x24 0x04
170
171# CHECK: lea	rcx, [rsp + 4]
1720x48 0x8d 0x4c 0x24 0x04
173
174
175