• 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: vpgatherqq YMM2, QWORD PTR [RDI + 2*YMM1], YMM0
1090xc4 0xe2 0xfd 0x91 0x14 0x4f
110
111# CHECK: vpgatherdd XMM10, DWORD PTR [R15 + 2*XMM9], XMM8
1120xc4 0x02 0x39 0x90 0x14 0x4f
113