[llvm-readobj] - Simplify stack-sizes.test test case.
[llvm-complete.git] / test / MC / X86 / CET-64.s
blob6e7e773e05a8425ae475b895897f4cd3576898b3
1 // RUN: llvm-mc -triple x86_64-unknown-unknown --show-encoding %s | FileCheck %s
3 // CHECK: clrssbsy 485498096
4 // CHECK: encoding: [0xf3,0x0f,0xae,0x34,0x25,0xf0,0x1c,0xf0,0x1c]
5 clrssbsy 485498096
7 // CHECK: clrssbsy 64(%rdx)
8 // CHECK: encoding: [0xf3,0x0f,0xae,0x72,0x40]
9 clrssbsy 64(%rdx)
11 // CHECK: clrssbsy 64(%rdx,%rax,4)
12 // CHECK: encoding: [0xf3,0x0f,0xae,0x74,0x82,0x40]
13 clrssbsy 64(%rdx,%rax,4)
15 // CHECK: clrssbsy -64(%rdx,%rax,4)
16 // CHECK: encoding: [0xf3,0x0f,0xae,0x74,0x82,0xc0]
17 clrssbsy -64(%rdx,%rax,4)
19 // CHECK: clrssbsy 64(%rdx,%rax)
20 // CHECK: encoding: [0xf3,0x0f,0xae,0x74,0x02,0x40]
21 clrssbsy 64(%rdx,%rax)
23 // CHECK: clrssbsy (%rdx)
24 // CHECK: encoding: [0xf3,0x0f,0xae,0x32]
25 clrssbsy (%rdx)
27 // CHECK: endbr64
28 // CHECK: # encoding: [0xf3,0x0f,0x1e,0xfa]
29 endbr64
31 // CHECK: endbr32
32 // CHECK: # encoding: [0xf3,0x0f,0x1e,0xfb]
33 endbr32
35 // CHECK: incsspd %r13d
36 // CHECK: # encoding: [0xf3,0x41,0x0f,0xae,0xed]
37 incsspd %r13d
39 // CHECK: incsspq %r15
40 // CHECK: # encoding: [0xf3,0x49,0x0f,0xae,0xef]
41 incsspq %r15
43 // CHECK: rdsspd %r13d
44 // CHECK: encoding: [0xf3,0x41,0x0f,0x1e,0xcd]
45 rdsspd %r13d
47 // CHECK: rdsspq %r15
48 // CHECK: encoding: [0xf3,0x49,0x0f,0x1e,0xcf]
49 rdsspq %r15
51 // CHECK: rstorssp 485498096
52 // CHECK: encoding: [0xf3,0x0f,0x01,0x2c,0x25,0xf0,0x1c,0xf0,0x1c]
53 rstorssp 485498096
55 // CHECK: rstorssp 64(%rdx)
56 // CHECK: encoding: [0xf3,0x0f,0x01,0x6a,0x40]
57 rstorssp 64(%rdx)
59 // CHECK: rstorssp 64(%rdx,%rax,4)
60 // CHECK: encoding: [0xf3,0x0f,0x01,0x6c,0x82,0x40]
61 rstorssp 64(%rdx,%rax,4)
63 // CHECK: rstorssp -64(%rdx,%rax,4)
64 // CHECK: encoding: [0xf3,0x0f,0x01,0x6c,0x82,0xc0]
65 rstorssp -64(%rdx,%rax,4)
67 // CHECK: rstorssp 64(%rdx,%rax)
68 // CHECK: encoding: [0xf3,0x0f,0x01,0x6c,0x02,0x40]
69 rstorssp 64(%rdx,%rax)
71 // CHECK: rstorssp (%rdx)
72 // CHECK: encoding: [0xf3,0x0f,0x01,0x2a]
73 rstorssp (%rdx)
75 // CHECK: saveprevssp
76 // CHECK: encoding: [0xf3,0x0f,0x01,0xea]
77 saveprevssp
79 // CHECK: setssbsy
80 // CHECK: # encoding: [0xf3,0x0f,0x01,0xe8]
81 setssbsy
83 // CHECK: wrssd %r13d, 485498096
84 // CHECK: encoding: [0x44,0x0f,0x38,0xf6,0x2c,0x25,0xf0,0x1c,0xf0,0x1c]
85 wrssd %r13d, 485498096
87 // CHECK: wrssd %r13d, 64(%rdx)
88 // CHECK: encoding: [0x44,0x0f,0x38,0xf6,0x6a,0x40]
89 wrssd %r13d, 64(%rdx)
91 // CHECK: wrssd %r13d, 64(%rdx,%rax,4)
92 // CHECK: encoding: [0x44,0x0f,0x38,0xf6,0x6c,0x82,0x40]
93 wrssd %r13d, 64(%rdx,%rax,4)
95 // CHECK: wrssd %r13d, -64(%rdx,%rax,4)
96 // CHECK: encoding: [0x44,0x0f,0x38,0xf6,0x6c,0x82,0xc0]
97 wrssd %r13d, -64(%rdx,%rax,4)
99 // CHECK: wrssd %r13d, 64(%rdx,%rax)
100 // CHECK: encoding: [0x44,0x0f,0x38,0xf6,0x6c,0x02,0x40]
101 wrssd %r13d, 64(%rdx,%rax)
103 // CHECK: wrssd %r13d, (%rdx)
104 // CHECK: encoding: [0x44,0x0f,0x38,0xf6,0x2a]
105 wrssd %r13d, (%rdx)
107 // CHECK: wrssq %r15, 485498096
108 // CHECK: encoding: [0x4c,0x0f,0x38,0xf6,0x3c,0x25,0xf0,0x1c,0xf0,0x1c]
109 wrssq %r15, 485498096
111 // CHECK: wrssq %r15, 64(%rdx)
112 // CHECK: encoding: [0x4c,0x0f,0x38,0xf6,0x7a,0x40]
113 wrssq %r15, 64(%rdx)
115 // CHECK: wrssq %r15, 64(%rdx,%rax,4)
116 // CHECK: encoding: [0x4c,0x0f,0x38,0xf6,0x7c,0x82,0x40]
117 wrssq %r15, 64(%rdx,%rax,4)
119 // CHECK: wrssq %r15, -64(%rdx,%rax,4)
120 // CHECK: encoding: [0x4c,0x0f,0x38,0xf6,0x7c,0x82,0xc0]
121 wrssq %r15, -64(%rdx,%rax,4)
123 // CHECK: wrssq %r15, 64(%rdx,%rax)
124 // CHECK: encoding: [0x4c,0x0f,0x38,0xf6,0x7c,0x02,0x40]
125 wrssq %r15, 64(%rdx,%rax)
127 // CHECK: wrssq %r15, (%rdx)
128 // CHECK: encoding: [0x4c,0x0f,0x38,0xf6,0x3a]
129 wrssq %r15, (%rdx)
131 // CHECK: wrussd %r13d, 485498096
132 // CHECK: encoding: [0x66,0x44,0x0f,0x38,0xf5,0x2c,0x25,0xf0,0x1c,0xf0,0x1c]
133 wrussd %r13d, 485498096
135 // CHECK: wrussd %r13d, 64(%rdx)
136 // CHECK: encoding: [0x66,0x44,0x0f,0x38,0xf5,0x6a,0x40]
137 wrussd %r13d, 64(%rdx)
139 // CHECK: wrussd %r13d, 64(%rdx,%rax,4)
140 // CHECK: encoding: [0x66,0x44,0x0f,0x38,0xf5,0x6c,0x82,0x40]
141 wrussd %r13d, 64(%rdx,%rax,4)
143 // CHECK: wrussd %r13d, -64(%rdx,%rax,4)
144 // CHECK: encoding: [0x66,0x44,0x0f,0x38,0xf5,0x6c,0x82,0xc0]
145 wrussd %r13d, -64(%rdx,%rax,4)
147 // CHECK: wrussd %r13d, 64(%rdx,%rax)
148 // CHECK: encoding: [0x66,0x44,0x0f,0x38,0xf5,0x6c,0x02,0x40]
149 wrussd %r13d, 64(%rdx,%rax)
151 // CHECK: wrussd %r13d, (%rdx)
152 // CHECK: encoding: [0x66,0x44,0x0f,0x38,0xf5,0x2a]
153 wrussd %r13d, (%rdx)
155 // CHECK: wrussq %r15, 485498096
156 // CHECK: encoding: [0x66,0x4c,0x0f,0x38,0xf5,0x3c,0x25,0xf0,0x1c,0xf0,0x1c]
157 wrussq %r15, 485498096
159 // CHECK: wrussq %r15, 64(%rdx)
160 // CHECK: encoding: [0x66,0x4c,0x0f,0x38,0xf5,0x7a,0x40]
161 wrussq %r15, 64(%rdx)
163 // CHECK: wrussq %r15, 64(%rdx,%rax,4)
164 // CHECK: encoding: [0x66,0x4c,0x0f,0x38,0xf5,0x7c,0x82,0x40]
165 wrussq %r15, 64(%rdx,%rax,4)
167 // CHECK: wrussq %r15, -64(%rdx,%rax,4)
168 // CHECK: encoding: [0x66,0x4c,0x0f,0x38,0xf5,0x7c,0x82,0xc0]
169 wrussq %r15, -64(%rdx,%rax,4)
171 // CHECK: wrussq %r15, 64(%rdx,%rax)
172 // CHECK: encoding: [0x66,0x4c,0x0f,0x38,0xf5,0x7c,0x02,0x40]
173 wrussq %r15, 64(%rdx,%rax)
175 // CHECK: wrussq %r15, (%rdx)
176 // CHECK: encoding: [0x66,0x4c,0x0f,0x38,0xf5,0x3a]
177 wrussq %r15, (%rdx)