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 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287
|
# RUN: llvm-mc -triple x86_64 -show-encoding %s | FileCheck %s
# RUN: not llvm-mc -triple i386 -show-encoding %s 2>&1 | FileCheck %s --check-prefix=ERROR
# ERROR-COUNT-94: error:
# ERROR-NOT: error:
# CHECK: {evex} shlb $123, %bl
# CHECK: encoding: [0x62,0xf4,0x7c,0x08,0xc0,0xe3,0x7b]
{evex} shlb $123, %bl
# CHECK: {nf} shlb $123, %bl
# CHECK: encoding: [0x62,0xf4,0x7c,0x0c,0xc0,0xe3,0x7b]
{nf} shlb $123, %bl
# CHECK: shlb $123, %bl, %bl
# CHECK: encoding: [0x62,0xf4,0x64,0x18,0xc0,0xe3,0x7b]
shlb $123, %bl, %bl
# CHECK: {nf} shlb $123, %bl, %bl
# CHECK: encoding: [0x62,0xf4,0x64,0x1c,0xc0,0xe3,0x7b]
{nf} shlb $123, %bl, %bl
# CHECK: {evex} shlw $123, %dx
# CHECK: encoding: [0x62,0xf4,0x7d,0x08,0xc1,0xe2,0x7b]
{evex} shlw $123, %dx
# CHECK: {nf} shlw $123, %dx
# CHECK: encoding: [0x62,0xf4,0x7d,0x0c,0xc1,0xe2,0x7b]
{nf} shlw $123, %dx
# CHECK: shlw $123, %dx, %dx
# CHECK: encoding: [0x62,0xf4,0x6d,0x18,0xc1,0xe2,0x7b]
shlw $123, %dx, %dx
# CHECK: {nf} shlw $123, %dx, %dx
# CHECK: encoding: [0x62,0xf4,0x6d,0x1c,0xc1,0xe2,0x7b]
{nf} shlw $123, %dx, %dx
# CHECK: {evex} shll $123, %ecx
# CHECK: encoding: [0x62,0xf4,0x7c,0x08,0xc1,0xe1,0x7b]
{evex} shll $123, %ecx
# CHECK: {nf} shll $123, %ecx
# CHECK: encoding: [0x62,0xf4,0x7c,0x0c,0xc1,0xe1,0x7b]
{nf} shll $123, %ecx
# CHECK: shll $123, %ecx, %ecx
# CHECK: encoding: [0x62,0xf4,0x74,0x18,0xc1,0xe1,0x7b]
shll $123, %ecx, %ecx
# CHECK: {nf} shll $123, %ecx, %ecx
# CHECK: encoding: [0x62,0xf4,0x74,0x1c,0xc1,0xe1,0x7b]
{nf} shll $123, %ecx, %ecx
# CHECK: {evex} shlq $123, %r9
# CHECK: encoding: [0x62,0xd4,0xfc,0x08,0xc1,0xe1,0x7b]
{evex} shlq $123, %r9
# CHECK: {nf} shlq $123, %r9
# CHECK: encoding: [0x62,0xd4,0xfc,0x0c,0xc1,0xe1,0x7b]
{nf} shlq $123, %r9
# CHECK: shlq $123, %r9, %r9
# CHECK: encoding: [0x62,0xd4,0xb4,0x18,0xc1,0xe1,0x7b]
shlq $123, %r9, %r9
# CHECK: {nf} shlq $123, %r9, %r9
# CHECK: encoding: [0x62,0xd4,0xb4,0x1c,0xc1,0xe1,0x7b]
{nf} shlq $123, %r9, %r9
# CHECK: {evex} shlb $123, 291(%r8,%rax,4)
# CHECK: encoding: [0x62,0xd4,0x7c,0x08,0xc0,0xa4,0x80,0x23,0x01,0x00,0x00,0x7b]
{evex} shlb $123, 291(%r8,%rax,4)
# CHECK: {nf} shlb $123, 291(%r8,%rax,4)
# CHECK: encoding: [0x62,0xd4,0x7c,0x0c,0xc0,0xa4,0x80,0x23,0x01,0x00,0x00,0x7b]
{nf} shlb $123, 291(%r8,%rax,4)
# CHECK: shlb $123, 291(%r8,%rax,4), %bl
# CHECK: encoding: [0x62,0xd4,0x64,0x18,0xc0,0xa4,0x80,0x23,0x01,0x00,0x00,0x7b]
shlb $123, 291(%r8,%rax,4), %bl
# CHECK: {nf} shlb $123, 291(%r8,%rax,4), %bl
# CHECK: encoding: [0x62,0xd4,0x64,0x1c,0xc0,0xa4,0x80,0x23,0x01,0x00,0x00,0x7b]
{nf} shlb $123, 291(%r8,%rax,4), %bl
# CHECK: {evex} shlw $123, 291(%r8,%rax,4)
# CHECK: encoding: [0x62,0xd4,0x7d,0x08,0xc1,0xa4,0x80,0x23,0x01,0x00,0x00,0x7b]
{evex} shlw $123, 291(%r8,%rax,4)
# CHECK: {nf} shlw $123, 291(%r8,%rax,4)
# CHECK: encoding: [0x62,0xd4,0x7d,0x0c,0xc1,0xa4,0x80,0x23,0x01,0x00,0x00,0x7b]
{nf} shlw $123, 291(%r8,%rax,4)
# CHECK: shlw $123, 291(%r8,%rax,4), %dx
# CHECK: encoding: [0x62,0xd4,0x6d,0x18,0xc1,0xa4,0x80,0x23,0x01,0x00,0x00,0x7b]
shlw $123, 291(%r8,%rax,4), %dx
# CHECK: {nf} shlw $123, 291(%r8,%rax,4), %dx
# CHECK: encoding: [0x62,0xd4,0x6d,0x1c,0xc1,0xa4,0x80,0x23,0x01,0x00,0x00,0x7b]
{nf} shlw $123, 291(%r8,%rax,4), %dx
# CHECK: {evex} shll $123, 291(%r8,%rax,4)
# CHECK: encoding: [0x62,0xd4,0x7c,0x08,0xc1,0xa4,0x80,0x23,0x01,0x00,0x00,0x7b]
{evex} shll $123, 291(%r8,%rax,4)
# CHECK: {nf} shll $123, 291(%r8,%rax,4)
# CHECK: encoding: [0x62,0xd4,0x7c,0x0c,0xc1,0xa4,0x80,0x23,0x01,0x00,0x00,0x7b]
{nf} shll $123, 291(%r8,%rax,4)
# CHECK: shll $123, 291(%r8,%rax,4), %ecx
# CHECK: encoding: [0x62,0xd4,0x74,0x18,0xc1,0xa4,0x80,0x23,0x01,0x00,0x00,0x7b]
shll $123, 291(%r8,%rax,4), %ecx
# CHECK: {nf} shll $123, 291(%r8,%rax,4), %ecx
# CHECK: encoding: [0x62,0xd4,0x74,0x1c,0xc1,0xa4,0x80,0x23,0x01,0x00,0x00,0x7b]
{nf} shll $123, 291(%r8,%rax,4), %ecx
# CHECK: {evex} shlq $123, 291(%r8,%rax,4)
# CHECK: encoding: [0x62,0xd4,0xfc,0x08,0xc1,0xa4,0x80,0x23,0x01,0x00,0x00,0x7b]
{evex} shlq $123, 291(%r8,%rax,4)
# CHECK: {nf} shlq $123, 291(%r8,%rax,4)
# CHECK: encoding: [0x62,0xd4,0xfc,0x0c,0xc1,0xa4,0x80,0x23,0x01,0x00,0x00,0x7b]
{nf} shlq $123, 291(%r8,%rax,4)
# CHECK: shlq $123, 291(%r8,%rax,4), %r9
# CHECK: encoding: [0x62,0xd4,0xb4,0x18,0xc1,0xa4,0x80,0x23,0x01,0x00,0x00,0x7b]
shlq $123, 291(%r8,%rax,4), %r9
# CHECK: {nf} shlq $123, 291(%r8,%rax,4), %r9
# CHECK: encoding: [0x62,0xd4,0xb4,0x1c,0xc1,0xa4,0x80,0x23,0x01,0x00,0x00,0x7b]
{nf} shlq $123, 291(%r8,%rax,4), %r9
# CHECK: {evex} shlb %bl
# CHECK: encoding: [0x62,0xf4,0x7c,0x08,0xd0,0xe3]
{evex} shlb %bl
# CHECK: {nf} shlb %bl
# CHECK: encoding: [0x62,0xf4,0x7c,0x0c,0xd0,0xe3]
{nf} shlb %bl
# CHECK: {evex} shlb %cl, %bl
# CHECK: encoding: [0x62,0xf4,0x7c,0x08,0xd2,0xe3]
{evex} shlb %cl, %bl
# CHECK: {nf} shlb %cl, %bl
# CHECK: encoding: [0x62,0xf4,0x7c,0x0c,0xd2,0xe3]
{nf} shlb %cl, %bl
# CHECK: shlb %cl, %bl, %bl
# CHECK: encoding: [0x62,0xf4,0x64,0x18,0xd2,0xe3]
shlb %cl, %bl, %bl
# CHECK: {nf} shlb %cl, %bl, %bl
# CHECK: encoding: [0x62,0xf4,0x64,0x1c,0xd2,0xe3]
{nf} shlb %cl, %bl, %bl
# CHECK: {evex} shlw %cl, %dx
# CHECK: encoding: [0x62,0xf4,0x7d,0x08,0xd3,0xe2]
{evex} shlw %cl, %dx
# CHECK: {nf} shlw %cl, %dx
# CHECK: encoding: [0x62,0xf4,0x7d,0x0c,0xd3,0xe2]
{nf} shlw %cl, %dx
# CHECK: shlw %cl, %dx, %dx
# CHECK: encoding: [0x62,0xf4,0x6d,0x18,0xd3,0xe2]
shlw %cl, %dx, %dx
# CHECK: {nf} shlw %cl, %dx, %dx
# CHECK: encoding: [0x62,0xf4,0x6d,0x1c,0xd3,0xe2]
{nf} shlw %cl, %dx, %dx
# CHECK: {evex} shll %cl, %ecx
# CHECK: encoding: [0x62,0xf4,0x7c,0x08,0xd3,0xe1]
{evex} shll %cl, %ecx
# CHECK: {nf} shll %cl, %ecx
# CHECK: encoding: [0x62,0xf4,0x7c,0x0c,0xd3,0xe1]
{nf} shll %cl, %ecx
# CHECK: shll %cl, %ecx, %ecx
# CHECK: encoding: [0x62,0xf4,0x74,0x18,0xd3,0xe1]
shll %cl, %ecx, %ecx
# CHECK: {nf} shll %cl, %ecx, %ecx
# CHECK: encoding: [0x62,0xf4,0x74,0x1c,0xd3,0xe1]
{nf} shll %cl, %ecx, %ecx
# CHECK: {evex} shlq %cl, %r9
# CHECK: encoding: [0x62,0xd4,0xfc,0x08,0xd3,0xe1]
{evex} shlq %cl, %r9
# CHECK: {nf} shlq %cl, %r9
# CHECK: encoding: [0x62,0xd4,0xfc,0x0c,0xd3,0xe1]
{nf} shlq %cl, %r9
# CHECK: shlq %cl, %r9, %r9
# CHECK: encoding: [0x62,0xd4,0xb4,0x18,0xd3,0xe1]
shlq %cl, %r9, %r9
# CHECK: {nf} shlq %cl, %r9, %r9
# CHECK: encoding: [0x62,0xd4,0xb4,0x1c,0xd3,0xe1]
{nf} shlq %cl, %r9, %r9
# CHECK: {evex} shlb %cl, 291(%r8,%rax,4)
# CHECK: encoding: [0x62,0xd4,0x7c,0x08,0xd2,0xa4,0x80,0x23,0x01,0x00,0x00]
{evex} shlb %cl, 291(%r8,%rax,4)
# CHECK: {nf} shlb %cl, 291(%r8,%rax,4)
# CHECK: encoding: [0x62,0xd4,0x7c,0x0c,0xd2,0xa4,0x80,0x23,0x01,0x00,0x00]
{nf} shlb %cl, 291(%r8,%rax,4)
# CHECK: shlb %cl, 291(%r8,%rax,4), %bl
# CHECK: encoding: [0x62,0xd4,0x64,0x18,0xd2,0xa4,0x80,0x23,0x01,0x00,0x00]
shlb %cl, 291(%r8,%rax,4), %bl
# CHECK: {nf} shlb %cl, 291(%r8,%rax,4), %bl
# CHECK: encoding: [0x62,0xd4,0x64,0x1c,0xd2,0xa4,0x80,0x23,0x01,0x00,0x00]
{nf} shlb %cl, 291(%r8,%rax,4), %bl
# CHECK: {evex} shlw %cl, 291(%r8,%rax,4)
# CHECK: encoding: [0x62,0xd4,0x7d,0x08,0xd3,0xa4,0x80,0x23,0x01,0x00,0x00]
{evex} shlw %cl, 291(%r8,%rax,4)
# CHECK: {nf} shlw %cl, 291(%r8,%rax,4)
# CHECK: encoding: [0x62,0xd4,0x7d,0x0c,0xd3,0xa4,0x80,0x23,0x01,0x00,0x00]
{nf} shlw %cl, 291(%r8,%rax,4)
# CHECK: shlw %cl, 291(%r8,%rax,4), %dx
# CHECK: encoding: [0x62,0xd4,0x6d,0x18,0xd3,0xa4,0x80,0x23,0x01,0x00,0x00]
shlw %cl, 291(%r8,%rax,4), %dx
# CHECK: {nf} shlw %cl, 291(%r8,%rax,4), %dx
# CHECK: encoding: [0x62,0xd4,0x6d,0x1c,0xd3,0xa4,0x80,0x23,0x01,0x00,0x00]
{nf} shlw %cl, 291(%r8,%rax,4), %dx
# CHECK: {evex} shll %cl, 291(%r8,%rax,4)
# CHECK: encoding: [0x62,0xd4,0x7c,0x08,0xd3,0xa4,0x80,0x23,0x01,0x00,0x00]
{evex} shll %cl, 291(%r8,%rax,4)
# CHECK: {nf} shll %cl, 291(%r8,%rax,4)
# CHECK: encoding: [0x62,0xd4,0x7c,0x0c,0xd3,0xa4,0x80,0x23,0x01,0x00,0x00]
{nf} shll %cl, 291(%r8,%rax,4)
# CHECK: shll %cl, 291(%r8,%rax,4), %ecx
# CHECK: encoding: [0x62,0xd4,0x74,0x18,0xd3,0xa4,0x80,0x23,0x01,0x00,0x00]
shll %cl, 291(%r8,%rax,4), %ecx
# CHECK: {nf} shll %cl, 291(%r8,%rax,4), %ecx
# CHECK: encoding: [0x62,0xd4,0x74,0x1c,0xd3,0xa4,0x80,0x23,0x01,0x00,0x00]
{nf} shll %cl, 291(%r8,%rax,4), %ecx
# CHECK: {evex} shlq %cl, 291(%r8,%rax,4)
# CHECK: encoding: [0x62,0xd4,0xfc,0x08,0xd3,0xa4,0x80,0x23,0x01,0x00,0x00]
{evex} shlq %cl, 291(%r8,%rax,4)
# CHECK: {nf} shlq %cl, 291(%r8,%rax,4)
# CHECK: encoding: [0x62,0xd4,0xfc,0x0c,0xd3,0xa4,0x80,0x23,0x01,0x00,0x00]
{nf} shlq %cl, 291(%r8,%rax,4)
# CHECK: shlq %cl, 291(%r8,%rax,4), %r9
# CHECK: encoding: [0x62,0xd4,0xb4,0x18,0xd3,0xa4,0x80,0x23,0x01,0x00,0x00]
shlq %cl, 291(%r8,%rax,4), %r9
# CHECK: {nf} shlq %cl, 291(%r8,%rax,4), %r9
# CHECK: encoding: [0x62,0xd4,0xb4,0x1c,0xd3,0xa4,0x80,0x23,0x01,0x00,0x00]
{nf} shlq %cl, 291(%r8,%rax,4), %r9
# CHECK: {evex} shlw %dx
# CHECK: encoding: [0x62,0xf4,0x7d,0x08,0xd1,0xe2]
{evex} shlw %dx
# CHECK: {nf} shlw %dx
# CHECK: encoding: [0x62,0xf4,0x7d,0x0c,0xd1,0xe2]
{nf} shlw %dx
# CHECK: shlw %dx, %dx
# CHECK: encoding: [0x62,0xf4,0x6d,0x18,0xd1,0xe2]
shlw %dx, %dx
# CHECK: {nf} shlw %dx, %dx
# CHECK: encoding: [0x62,0xf4,0x6d,0x1c,0xd1,0xe2]
{nf} shlw %dx, %dx
# CHECK: {evex} shll %ecx
# CHECK: encoding: [0x62,0xf4,0x7c,0x08,0xd1,0xe1]
{evex} shll %ecx
# CHECK: {nf} shll %ecx
# CHECK: encoding: [0x62,0xf4,0x7c,0x0c,0xd1,0xe1]
{nf} shll %ecx
# CHECK: shll %ecx, %ecx
# CHECK: encoding: [0x62,0xf4,0x74,0x18,0xd1,0xe1]
shll %ecx, %ecx
# CHECK: {nf} shll %ecx, %ecx
# CHECK: encoding: [0x62,0xf4,0x74,0x1c,0xd1,0xe1]
{nf} shll %ecx, %ecx
# CHECK: {evex} shlq %r9
# CHECK: encoding: [0x62,0xd4,0xfc,0x08,0xd1,0xe1]
{evex} shlq %r9
# CHECK: {nf} shlq %r9
# CHECK: encoding: [0x62,0xd4,0xfc,0x0c,0xd1,0xe1]
{nf} shlq %r9
# CHECK: shlq %r9, %r9
# CHECK: encoding: [0x62,0xd4,0xb4,0x18,0xd1,0xe1]
shlq %r9, %r9
# CHECK: {nf} shlq %r9, %r9
# CHECK: encoding: [0x62,0xd4,0xb4,0x1c,0xd1,0xe1]
{nf} shlq %r9, %r9
# CHECK: {evex} shlb 291(%r8,%rax,4)
# CHECK: encoding: [0x62,0xd4,0x7c,0x08,0xd0,0xa4,0x80,0x23,0x01,0x00,0x00]
{evex} shlb 291(%r8,%rax,4)
# CHECK: {nf} shlb 291(%r8,%rax,4)
# CHECK: encoding: [0x62,0xd4,0x7c,0x0c,0xd0,0xa4,0x80,0x23,0x01,0x00,0x00]
{nf} shlb 291(%r8,%rax,4)
# CHECK: shlb 291(%r8,%rax,4), %bl
# CHECK: encoding: [0x62,0xd4,0x64,0x18,0xd0,0xa4,0x80,0x23,0x01,0x00,0x00]
shlb 291(%r8,%rax,4), %bl
# CHECK: {nf} shlb 291(%r8,%rax,4), %bl
# CHECK: encoding: [0x62,0xd4,0x64,0x1c,0xd0,0xa4,0x80,0x23,0x01,0x00,0x00]
{nf} shlb 291(%r8,%rax,4), %bl
# CHECK: {evex} shlw 291(%r8,%rax,4)
# CHECK: encoding: [0x62,0xd4,0x7d,0x08,0xd1,0xa4,0x80,0x23,0x01,0x00,0x00]
{evex} shlw 291(%r8,%rax,4)
# CHECK: {nf} shlw 291(%r8,%rax,4)
# CHECK: encoding: [0x62,0xd4,0x7d,0x0c,0xd1,0xa4,0x80,0x23,0x01,0x00,0x00]
{nf} shlw 291(%r8,%rax,4)
# CHECK: shlw 291(%r8,%rax,4), %dx
# CHECK: encoding: [0x62,0xd4,0x6d,0x18,0xd1,0xa4,0x80,0x23,0x01,0x00,0x00]
shlw 291(%r8,%rax,4), %dx
# CHECK: {nf} shlw 291(%r8,%rax,4), %dx
# CHECK: encoding: [0x62,0xd4,0x6d,0x1c,0xd1,0xa4,0x80,0x23,0x01,0x00,0x00]
{nf} shlw 291(%r8,%rax,4), %dx
# CHECK: {evex} shll 291(%r8,%rax,4)
# CHECK: encoding: [0x62,0xd4,0x7c,0x08,0xd1,0xa4,0x80,0x23,0x01,0x00,0x00]
{evex} shll 291(%r8,%rax,4)
# CHECK: {nf} shll 291(%r8,%rax,4)
# CHECK: encoding: [0x62,0xd4,0x7c,0x0c,0xd1,0xa4,0x80,0x23,0x01,0x00,0x00]
{nf} shll 291(%r8,%rax,4)
# CHECK: shll 291(%r8,%rax,4), %ecx
# CHECK: encoding: [0x62,0xd4,0x74,0x18,0xd1,0xa4,0x80,0x23,0x01,0x00,0x00]
shll 291(%r8,%rax,4), %ecx
# CHECK: {nf} shll 291(%r8,%rax,4), %ecx
# CHECK: encoding: [0x62,0xd4,0x74,0x1c,0xd1,0xa4,0x80,0x23,0x01,0x00,0x00]
{nf} shll 291(%r8,%rax,4), %ecx
# CHECK: {evex} shlq 291(%r8,%rax,4)
# CHECK: encoding: [0x62,0xd4,0xfc,0x08,0xd1,0xa4,0x80,0x23,0x01,0x00,0x00]
{evex} shlq 291(%r8,%rax,4)
# CHECK: {nf} shlq 291(%r8,%rax,4)
# CHECK: encoding: [0x62,0xd4,0xfc,0x0c,0xd1,0xa4,0x80,0x23,0x01,0x00,0x00]
{nf} shlq 291(%r8,%rax,4)
# CHECK: shlq 291(%r8,%rax,4), %r9
# CHECK: encoding: [0x62,0xd4,0xb4,0x18,0xd1,0xa4,0x80,0x23,0x01,0x00,0x00]
shlq 291(%r8,%rax,4), %r9
# CHECK: {nf} shlq 291(%r8,%rax,4), %r9
# CHECK: encoding: [0x62,0xd4,0xb4,0x1c,0xd1,0xa4,0x80,0x23,0x01,0x00,0x00]
{nf} shlq 291(%r8,%rax,4), %r9
|