1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
|
# RUN: llvm-mc --disassemble %s -triple=x86_64 | FileCheck %s --check-prefixes=ATT
# RUN: llvm-mc --disassemble %s -triple=x86_64 -x86-asm-syntax=intel --output-asm-variant=1 | FileCheck %s --check-prefixes=INTEL
## invpcid
# ATT: invpcid 123(%rax,%rbx,4), %r9
# INTEL: invpcid r9, xmmword ptr [rax + 4*rbx + 123]
0x62,0x74,0xfe,0x08,0xf2,0x4c,0x98,0x7b
# ATT: invpcid 291(%r28,%r29,4), %r19
# INTEL: invpcid r19, xmmword ptr [r28 + 4*r29 + 291]
0x62,0x8c,0xfa,0x08,0xf2,0x9c,0xac,0x23,0x01,0x00,0x00
## invept
# ATT: invept 291(%r28,%r29,4), %r19
# INTEL: invept r19, xmmword ptr [r28 + 4*r29 + 291]
0x62,0x8c,0xfa,0x08,0xf0,0x9c,0xac,0x23,0x01,0x00,0x00
# ATT: invept 123(%rax,%rbx,4), %r9
# INTEL: invept r9, xmmword ptr [rax + 4*rbx + 123]
0x62,0x74,0xfe,0x08,0xf0,0x4c,0x98,0x7b
## invvpid
# ATT: invvpid 291(%r28,%r29,4), %r19
# INTEL: invvpid r19, xmmword ptr [r28 + 4*r29 + 291]
0x62,0x8c,0xfa,0x08,0xf1,0x9c,0xac,0x23,0x01,0x00,0x00
# ATT: invvpid 123(%rax,%rbx,4), %r9
# INTEL: invvpid r9, xmmword ptr [rax + 4*rbx + 123]
0x62,0x74,0xfe,0x08,0xf1,0x4c,0x98,0x7b
## adc
# ATT: {evex} adcb $123, %bl
# INTEL: {evex} adc bl, 123
0x62,0xf4,0xfc,0x08,0x80,0xd3,0x7b
# ATT: adcb $123, %bl, %cl
# INTEL: adc cl, bl, 123
0x62,0xf4,0xf4,0x18,0x80,0xd3,0x7b
# ATT: adcb $123, %r16b
# INTEL: adc r16b, 123
0xd5,0x18,0x80,0xd0,0x7b
## add
# ATT: {evex} addb $123, %bl
# INTEL: {evex} add bl, 123
0x62,0xf4,0xfc,0x08,0x80,0xc3,0x7b
# ATT: {nf} addb $123, %bl
# INTEL: {nf} add bl, 123
0x62,0xf4,0xfc,0x0c,0x80,0xc3,0x7b
# ATT: addb $123, %bl, %cl
# INTEL: add cl, bl, 123
0x62,0xf4,0xf4,0x18,0x80,0xc3,0x7b
# ATT: {nf} addb $123, %bl, %cl
# INTEL: {nf} add cl, bl, 123
0x62,0xf4,0xf4,0x1c,0x80,0xc3,0x7b
# ATT: addb $123, %r16b
# INTEL: add r16b, 123
0xd5,0x18,0x80,0xc0,0x7b
## inc
# ATT: {evex} incb %bl
# INTEL: {evex} inc bl
0x62,0xf4,0xfc,0x08,0xfe,0xc3
# ATT: {nf} incb %bl
# INTEL: {nf} inc bl
0x62,0xf4,0xfc,0x0c,0xfe,0xc3
# ATT: incb %bl, %bl
# INTEL: inc bl, bl
0x62,0xf4,0xe4,0x18,0xfe,0xc3
# ATT: {nf} incb %bl, %bl
# INTEL: {nf} inc bl, bl
0x62,0xf4,0xe4,0x1c,0xfe,0xc3
# ATT: incb %r16b
# INTEL: inc r16b
0xd5,0x18,0xfe,0xc0
## mul
# ATT: {evex} mulb %bl
# INTEL: {evex} mul bl
0x62,0xf4,0xfc,0x08,0xf6,0xe3
# ATT: {nf} mulb %bl
# INTEL: {nf} mul bl
0x62,0xf4,0xfc,0x0c,0xf6,0xe3
# ATT: mulb %r16b
# INTEL: mul r16b
0xd5,0x18,0xf6,0xe0
## imul
# ATT: {evex} imulb %bl
# INTEL: {evex} imul bl
0x62,0xf4,0xfc,0x08,0xf6,0xeb
# ATT: {nf} imulb %bl
# INTEL: {nf} imul bl
0x62,0xf4,0xfc,0x0c,0xf6,0xeb
# ATT: imulb %r16b
# INTEL: imul r16b
0xd5,0x18,0xf6,0xe8
|