1 // RUN
: llvm-mc
-triple x86_64-unknown-unknown
--show-encoding
%s | FileCheck
%s
4 // CHECK
: encoding
: [0x41,0x0f,0xcd]
7 // CHECK
: cmpxchgb
%r14b
, 485498096
8 // CHECK
: encoding
: [0x44,0x0f,0xb0,0x34,0x25,0xf0,0x1c,0xf0,0x1c]
9 cmpxchgb
%r14b
, 485498096
11 // CHECK
: cmpxchgb
%r14b
, 64(%rdx
)
12 // CHECK
: encoding
: [0x44,0x0f,0xb0,0x72,0x40]
13 cmpxchgb
%r14b
, 64(%rdx
)
15 // CHECK
: cmpxchgb
%r14b
, 64(%rdx
,%rax
,4)
16 // CHECK
: encoding
: [0x44,0x0f,0xb0,0x74,0x82,0x40]
17 cmpxchgb
%r14b
, 64(%rdx
,%rax
,4)
19 // CHECK
: cmpxchgb
%r14b
, -64(%rdx
,%rax
,4)
20 // CHECK
: encoding
: [0x44,0x0f,0xb0,0x74,0x82,0xc0]
21 cmpxchgb
%r14b
, -64(%rdx
,%rax
,4)
23 // CHECK
: cmpxchgb
%r14b
, 64(%rdx
,%rax
)
24 // CHECK
: encoding
: [0x44,0x0f,0xb0,0x74,0x02,0x40]
25 cmpxchgb
%r14b
, 64(%rdx
,%rax
)
27 // CHECK
: cmpxchgb
%r14b
, %r14b
28 // CHECK
: encoding
: [0x45,0x0f,0xb0,0xf6]
31 // CHECK
: cmpxchgb
%r14b
, (%rdx
)
32 // CHECK
: encoding
: [0x44,0x0f,0xb0,0x32]
33 cmpxchgb
%r14b
, (%rdx
)
35 // CHECK
: cmpxchgl
%r13d
, %r13d
36 // CHECK
: encoding
: [0x45,0x0f,0xb1,0xed]
39 // CHECK
: cmpxchgw
%r14w
, 485498096
40 // CHECK
: encoding
: [0x66,0x44,0x0f,0xb1,0x34,0x25,0xf0,0x1c,0xf0,0x1c]
41 cmpxchgw
%r14w
, 485498096
43 // CHECK
: cmpxchgw
%r14w
, 64(%rdx
)
44 // CHECK
: encoding
: [0x66,0x44,0x0f,0xb1,0x72,0x40]
45 cmpxchgw
%r14w
, 64(%rdx
)
47 // CHECK
: cmpxchgw
%r14w
, 64(%rdx
,%rax
,4)
48 // CHECK
: encoding
: [0x66,0x44,0x0f,0xb1,0x74,0x82,0x40]
49 cmpxchgw
%r14w
, 64(%rdx
,%rax
,4)
51 // CHECK
: cmpxchgw
%r14w
, -64(%rdx
,%rax
,4)
52 // CHECK
: encoding
: [0x66,0x44,0x0f,0xb1,0x74,0x82,0xc0]
53 cmpxchgw
%r14w
, -64(%rdx
,%rax
,4)
55 // CHECK
: cmpxchgw
%r14w
, 64(%rdx
,%rax
)
56 // CHECK
: encoding
: [0x66,0x44,0x0f,0xb1,0x74,0x02,0x40]
57 cmpxchgw
%r14w
, 64(%rdx
,%rax
)
59 // CHECK
: cmpxchgw
%r14w
, %r14w
60 // CHECK
: encoding
: [0x66,0x45,0x0f,0xb1,0xf6]
63 // CHECK
: cmpxchgw
%r14w
, (%rdx
)
64 // CHECK
: encoding
: [0x66,0x44,0x0f,0xb1,0x32]
65 cmpxchgw
%r14w
, (%rdx
)
68 // CHECK
: encoding
: [0x0f,0xa2]
72 // CHECK
: encoding
: [0x0f,0x08]
75 // CHECK
: invlpg
485498096
76 // CHECK
: encoding
: [0x0f,0x01,0x3c,0x25,0xf0,0x1c,0xf0,0x1c]
79 // CHECK
: invlpg
64(%rdx
)
80 // CHECK
: encoding
: [0x0f,0x01,0x7a,0x40]
83 // CHECK
: invlpg
64(%rdx
,%rax
,4)
84 // CHECK
: encoding
: [0x0f,0x01,0x7c,0x82,0x40]
85 invlpg
64(%rdx
,%rax
,4)
87 // CHECK
: invlpg
-64(%rdx
,%rax
,4)
88 // CHECK
: encoding
: [0x0f,0x01,0x7c,0x82,0xc0]
89 invlpg
-64(%rdx
,%rax
,4)
91 // CHECK
: invlpg
64(%rdx
,%rax
)
92 // CHECK
: encoding
: [0x0f,0x01,0x7c,0x02,0x40]
95 // CHECK
: invlpg
(%rdx
)
96 // CHECK
: encoding
: [0x0f,0x01,0x3a]
100 // CHECK
: encoding
: [0x0f,0xaa]
104 // CHECK
: encoding
: [0x0f,0x09]
107 // CHECK
: xaddb
%r14b
, 485498096
108 // CHECK
: encoding
: [0x44,0x0f,0xc0,0x34,0x25,0xf0,0x1c,0xf0,0x1c]
109 xaddb
%r14b
, 485498096
111 // CHECK
: xaddb
%r14b
, 64(%rdx
)
112 // CHECK
: encoding
: [0x44,0x0f,0xc0,0x72,0x40]
113 xaddb
%r14b
, 64(%rdx
)
115 // CHECK
: xaddb
%r14b
, 64(%rdx
,%rax
,4)
116 // CHECK
: encoding
: [0x44,0x0f,0xc0,0x74,0x82,0x40]
117 xaddb
%r14b
, 64(%rdx
,%rax
,4)
119 // CHECK
: xaddb
%r14b
, -64(%rdx
,%rax
,4)
120 // CHECK
: encoding
: [0x44,0x0f,0xc0,0x74,0x82,0xc0]
121 xaddb
%r14b
, -64(%rdx
,%rax
,4)
123 // CHECK
: xaddb
%r14b
, 64(%rdx
,%rax
)
124 // CHECK
: encoding
: [0x44,0x0f,0xc0,0x74,0x02,0x40]
125 xaddb
%r14b
, 64(%rdx
,%rax
)
127 // CHECK
: xaddb
%r14b
, %r14b
128 // CHECK
: encoding
: [0x45,0x0f,0xc0,0xf6]
131 // CHECK
: xaddb
%r14b
, (%rdx
)
132 // CHECK
: encoding
: [0x44,0x0f,0xc0,0x32]
135 // CHECK
: xaddl
%r13d
, %r13d
136 // CHECK
: encoding
: [0x45,0x0f,0xc1,0xed]
139 // CHECK
: xaddw
%r14w
, 485498096
140 // CHECK
: encoding
: [0x66,0x44,0x0f,0xc1,0x34,0x25,0xf0,0x1c,0xf0,0x1c]
141 xaddw
%r14w
, 485498096
143 // CHECK
: xaddw
%r14w
, 64(%rdx
)
144 // CHECK
: encoding
: [0x66,0x44,0x0f,0xc1,0x72,0x40]
145 xaddw
%r14w
, 64(%rdx
)
147 // CHECK
: xaddw
%r14w
, 64(%rdx
,%rax
,4)
148 // CHECK
: encoding
: [0x66,0x44,0x0f,0xc1,0x74,0x82,0x40]
149 xaddw
%r14w
, 64(%rdx
,%rax
,4)
151 // CHECK
: xaddw
%r14w
, -64(%rdx
,%rax
,4)
152 // CHECK
: encoding
: [0x66,0x44,0x0f,0xc1,0x74,0x82,0xc0]
153 xaddw
%r14w
, -64(%rdx
,%rax
,4)
155 // CHECK
: xaddw
%r14w
, 64(%rdx
,%rax
)
156 // CHECK
: encoding
: [0x66,0x44,0x0f,0xc1,0x74,0x02,0x40]
157 xaddw
%r14w
, 64(%rdx
,%rax
)
159 // CHECK
: xaddw
%r14w
, %r14w
160 // CHECK
: encoding
: [0x66,0x45,0x0f,0xc1,0xf6]
163 // CHECK
: xaddw
%r14w
, (%rdx
)
164 // CHECK
: encoding
: [0x66,0x44,0x0f,0xc1,0x32]