1// RUN: llvm-mc -triple i386-unknown-unknown --show-encoding %s | FileCheck %s
2
3// CHECK: bswapl %eax
4// CHECK: encoding: [0x0f,0xc8]
5bswapl %eax
6
7// CHECK: cmpxchgl %eax, 3809469200(%edx,%eax,4)
8// CHECK: encoding: [0x0f,0xb1,0x84,0x82,0x10,0xe3,0x0f,0xe3]
9cmpxchgl %eax, 3809469200(%edx,%eax,4)
10
11// CHECK: cmpxchgl %eax, 485498096(%edx,%eax,4)
12// CHECK: encoding: [0x0f,0xb1,0x84,0x82,0xf0,0x1c,0xf0,0x1c]
13cmpxchgl %eax, 485498096(%edx,%eax,4)
14
15// CHECK: cmpxchgl %eax, 485498096(%edx)
16// CHECK: encoding: [0x0f,0xb1,0x82,0xf0,0x1c,0xf0,0x1c]
17cmpxchgl %eax, 485498096(%edx)
18
19// CHECK: cmpxchgl %eax, 485498096
20// CHECK: encoding: [0x0f,0xb1,0x05,0xf0,0x1c,0xf0,0x1c]
21cmpxchgl %eax, 485498096
22
23// CHECK: cmpxchgl %eax, 64(%edx,%eax)
24// CHECK: encoding: [0x0f,0xb1,0x44,0x02,0x40]
25cmpxchgl %eax, 64(%edx,%eax)
26
27// CHECK: cmpxchgl %eax, %eax
28// CHECK: encoding: [0x0f,0xb1,0xc0]
29cmpxchgl %eax, %eax
30
31// CHECK: cmpxchgl %eax, (%edx)
32// CHECK: encoding: [0x0f,0xb1,0x02]
33cmpxchgl %eax, (%edx)
34
35// CHECK: cpuid
36// CHECK: encoding: [0x0f,0xa2]
37cpuid
38
39// CHECK: invd
40// CHECK: encoding: [0x0f,0x08]
41invd
42
43// CHECK: invlpg -485498096(%edx,%eax,4)
44// CHECK: encoding: [0x0f,0x01,0xbc,0x82,0x10,0xe3,0x0f,0xe3]
45invlpg -485498096(%edx,%eax,4)
46
47// CHECK: invlpg 485498096(%edx,%eax,4)
48// CHECK: encoding: [0x0f,0x01,0xbc,0x82,0xf0,0x1c,0xf0,0x1c]
49invlpg 485498096(%edx,%eax,4)
50
51// CHECK: invlpg 485498096(%edx)
52// CHECK: encoding: [0x0f,0x01,0xba,0xf0,0x1c,0xf0,0x1c]
53invlpg 485498096(%edx)
54
55// CHECK: invlpg 485498096
56// CHECK: encoding: [0x0f,0x01,0x3d,0xf0,0x1c,0xf0,0x1c]
57invlpg 485498096
58
59// CHECK: invlpg 64(%edx,%eax)
60// CHECK: encoding: [0x0f,0x01,0x7c,0x02,0x40]
61invlpg 64(%edx,%eax)
62
63// CHECK: invlpg (%edx)
64// CHECK: encoding: [0x0f,0x01,0x3a]
65invlpg (%edx)
66
67// CHECK: rsm
68// CHECK: encoding: [0x0f,0xaa]
69rsm
70
71// CHECK: wbinvd
72// CHECK: encoding: [0x0f,0x09]
73wbinvd
74
75// CHECK: xaddl %eax, 3809469200(%edx,%eax,4)
76// CHECK: encoding: [0x0f,0xc1,0x84,0x82,0x10,0xe3,0x0f,0xe3]
77xaddl %eax, 3809469200(%edx,%eax,4)
78
79// CHECK: xaddl %eax, 485498096(%edx,%eax,4)
80// CHECK: encoding: [0x0f,0xc1,0x84,0x82,0xf0,0x1c,0xf0,0x1c]
81xaddl %eax, 485498096(%edx,%eax,4)
82
83// CHECK: xaddl %eax, 485498096(%edx)
84// CHECK: encoding: [0x0f,0xc1,0x82,0xf0,0x1c,0xf0,0x1c]
85xaddl %eax, 485498096(%edx)
86
87// CHECK: xaddl %eax, 485498096
88// CHECK: encoding: [0x0f,0xc1,0x05,0xf0,0x1c,0xf0,0x1c]
89xaddl %eax, 485498096
90
91// CHECK: xaddl %eax, 64(%edx,%eax)
92// CHECK: encoding: [0x0f,0xc1,0x44,0x02,0x40]
93xaddl %eax, 64(%edx,%eax)
94
95// CHECK: xaddl %eax, %eax
96// CHECK: encoding: [0x0f,0xc1,0xc0]
97xaddl %eax, %eax
98
99// CHECK: xaddl %eax, (%edx)
100// CHECK: encoding: [0x0f,0xc1,0x02]
101xaddl %eax, (%edx)
102
103