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