# RUN: llvm-mc -triple x86_64 -disassemble %s | FileCheck %s --check-prefix=ATT
# RUN: llvm-mc -triple x86_64 -disassemble -output-asm-variant=1 %s | FileCheck %s --check-prefix=INTEL
# ATT: {evex} shlb $123, %bl
# INTEL: {evex} shl bl, 123
0x62,0xf4,0x7c,0x08,0xc0,0xe3,0x7b
# ATT: {nf} shlb $123, %bl
# INTEL: {nf} shl bl, 123
0x62,0xf4,0x7c,0x0c,0xc0,0xe3,0x7b
# ATT: shlb $123, %bl, %bl
# INTEL: shl bl, bl, 123
0x62,0xf4,0x64,0x18,0xc0,0xe3,0x7b
# ATT: {nf} shlb $123, %bl, %bl
# INTEL: {nf} shl bl, bl, 123
0x62,0xf4,0x64,0x1c,0xc0,0xe3,0x7b
# ATT: {evex} shlw $123, %dx
# INTEL: {evex} shl dx, 123
0x62,0xf4,0x7d,0x08,0xc1,0xe2,0x7b
# ATT: {nf} shlw $123, %dx
# INTEL: {nf} shl dx, 123
0x62,0xf4,0x7d,0x0c,0xc1,0xe2,0x7b
# ATT: shlw $123, %dx, %dx
# INTEL: shl dx, dx, 123
0x62,0xf4,0x6d,0x18,0xc1,0xe2,0x7b
# ATT: {nf} shlw $123, %dx, %dx
# INTEL: {nf} shl dx, dx, 123
0x62,0xf4,0x6d,0x1c,0xc1,0xe2,0x7b
# ATT: {evex} shll $123, %ecx
# INTEL: {evex} shl ecx, 123
0x62,0xf4,0x7c,0x08,0xc1,0xe1,0x7b
# ATT: {nf} shll $123, %ecx
# INTEL: {nf} shl ecx, 123
0x62,0xf4,0x7c,0x0c,0xc1,0xe1,0x7b
# ATT: shll $123, %ecx, %ecx
# INTEL: shl ecx, ecx, 123
0x62,0xf4,0x74,0x18,0xc1,0xe1,0x7b
# ATT: {nf} shll $123, %ecx, %ecx
# INTEL: {nf} shl ecx, ecx, 123
0x62,0xf4,0x74,0x1c,0xc1,0xe1,0x7b
# ATT: {evex} shlq $123, %r9
# INTEL: {evex} shl r9, 123
0x62,0xd4,0xfc,0x08,0xc1,0xe1,0x7b
# ATT: {nf} shlq $123, %r9
# INTEL: {nf} shl r9, 123
0x62,0xd4,0xfc,0x0c,0xc1,0xe1,0x7b
# ATT: shlq $123, %r9, %r9
# INTEL: shl r9, r9, 123
0x62,0xd4,0xb4,0x18,0xc1,0xe1,0x7b
# ATT: {nf} shlq $123, %r9, %r9
# INTEL: {nf} shl r9, r9, 123
0x62,0xd4,0xb4,0x1c,0xc1,0xe1,0x7b
# ATT: {evex} shlb $123, 291(%r8,%rax,4)
# INTEL: {evex} shl byte ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0x7c,0x08,0xc0,0xa4,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: {nf} shlb $123, 291(%r8,%rax,4)
# INTEL: {nf} shl byte ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0x7c,0x0c,0xc0,0xa4,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: shlb $123, 291(%r8,%rax,4), %bl
# INTEL: shl bl, byte ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0x64,0x18,0xc0,0xa4,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: {nf} shlb $123, 291(%r8,%rax,4), %bl
# INTEL: {nf} shl bl, byte ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0x64,0x1c,0xc0,0xa4,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: {evex} shlw $123, 291(%r8,%rax,4)
# INTEL: {evex} shl word ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0x7d,0x08,0xc1,0xa4,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: {nf} shlw $123, 291(%r8,%rax,4)
# INTEL: {nf} shl word ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0x7d,0x0c,0xc1,0xa4,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: shlw $123, 291(%r8,%rax,4), %dx
# INTEL: shl dx, word ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0x6d,0x18,0xc1,0xa4,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: {nf} shlw $123, 291(%r8,%rax,4), %dx
# INTEL: {nf} shl dx, word ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0x6d,0x1c,0xc1,0xa4,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: {evex} shll $123, 291(%r8,%rax,4)
# INTEL: {evex} shl dword ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0x7c,0x08,0xc1,0xa4,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: {nf} shll $123, 291(%r8,%rax,4)
# INTEL: {nf} shl dword ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0x7c,0x0c,0xc1,0xa4,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: shll $123, 291(%r8,%rax,4), %ecx
# INTEL: shl ecx, dword ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0x74,0x18,0xc1,0xa4,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: {nf} shll $123, 291(%r8,%rax,4), %ecx
# INTEL: {nf} shl ecx, dword ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0x74,0x1c,0xc1,0xa4,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: {evex} shlq $123, 291(%r8,%rax,4)
# INTEL: {evex} shl qword ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0xfc,0x08,0xc1,0xa4,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: {nf} shlq $123, 291(%r8,%rax,4)
# INTEL: {nf} shl qword ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0xfc,0x0c,0xc1,0xa4,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: shlq $123, 291(%r8,%rax,4), %r9
# INTEL: shl r9, qword ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0xb4,0x18,0xc1,0xa4,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: {nf} shlq $123, 291(%r8,%rax,4), %r9
# INTEL: {nf} shl r9, qword ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0xb4,0x1c,0xc1,0xa4,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: {evex} shlb %bl
# INTEL: {evex} shl bl
0x62,0xf4,0x7c,0x08,0xd0,0xe3
# ATT: {nf} shlb %bl
# INTEL: {nf} shl bl
0x62,0xf4,0x7c,0x0c,0xd0,0xe3
# ATT: shlb %bl, %bl
# INTEL: shl bl, bl
0x62,0xf4,0x64,0x18,0xd0,0xe3
# ATT: {nf} shlb %bl, %bl
# INTEL: {nf} shl bl, bl
0x62,0xf4,0x64,0x1c,0xd0,0xe3
# ATT: {evex} shlb %cl, %bl
# INTEL: {evex} shl bl, cl
0x62,0xf4,0x7c,0x08,0xd2,0xe3
# ATT: {nf} shlb %cl, %bl
# INTEL: {nf} shl bl, cl
0x62,0xf4,0x7c,0x0c,0xd2,0xe3
# ATT: shlb %cl, %bl, %bl
# INTEL: shl bl, bl, cl
0x62,0xf4,0x64,0x18,0xd2,0xe3
# ATT: {nf} shlb %cl, %bl, %bl
# INTEL: {nf} shl bl, bl, cl
0x62,0xf4,0x64,0x1c,0xd2,0xe3
# ATT: {evex} shlw %cl, %dx
# INTEL: {evex} shl dx, cl
0x62,0xf4,0x7d,0x08,0xd3,0xe2
# ATT: {nf} shlw %cl, %dx
# INTEL: {nf} shl dx, cl
0x62,0xf4,0x7d,0x0c,0xd3,0xe2
# ATT: shlw %cl, %dx, %dx
# INTEL: shl dx, dx, cl
0x62,0xf4,0x6d,0x18,0xd3,0xe2
# ATT: {nf} shlw %cl, %dx, %dx
# INTEL: {nf} shl dx, dx, cl
0x62,0xf4,0x6d,0x1c,0xd3,0xe2
# ATT: {evex} shll %cl, %ecx
# INTEL: {evex} shl ecx, cl
0x62,0xf4,0x7c,0x08,0xd3,0xe1
# ATT: {nf} shll %cl, %ecx
# INTEL: {nf} shl ecx, cl
0x62,0xf4,0x7c,0x0c,0xd3,0xe1
# ATT: shll %cl, %ecx, %ecx
# INTEL: shl ecx, ecx, cl
0x62,0xf4,0x74,0x18,0xd3,0xe1
# ATT: {nf} shll %cl, %ecx, %ecx
# INTEL: {nf} shl ecx, ecx, cl
0x62,0xf4,0x74,0x1c,0xd3,0xe1
# ATT: {evex} shlq %cl, %r9
# INTEL: {evex} shl r9, cl
0x62,0xd4,0xfc,0x08,0xd3,0xe1
# ATT: {nf} shlq %cl, %r9
# INTEL: {nf} shl r9, cl
0x62,0xd4,0xfc,0x0c,0xd3,0xe1
# ATT: shlq %cl, %r9, %r9
# INTEL: shl r9, r9, cl
0x62,0xd4,0xb4,0x18,0xd3,0xe1
# ATT: {nf} shlq %cl, %r9, %r9
# INTEL: {nf} shl r9, r9, cl
0x62,0xd4,0xb4,0x1c,0xd3,0xe1
# ATT: {evex} shlb %cl, 291(%r8,%rax,4)
# INTEL: {evex} shl byte ptr [r8 + 4*rax + 291], cl
0x62,0xd4,0x7c,0x08,0xd2,0xa4,0x80,0x23,0x01,0x00,0x00
# ATT: {nf} shlb %cl, 291(%r8,%rax,4)
# INTEL: {nf} shl byte ptr [r8 + 4*rax + 291], cl
0x62,0xd4,0x7c,0x0c,0xd2,0xa4,0x80,0x23,0x01,0x00,0x00
# ATT: shlb %cl, 291(%r8,%rax,4), %bl
# INTEL: shl bl, byte ptr [r8 + 4*rax + 291], cl
0x62,0xd4,0x64,0x18,0xd2,0xa4,0x80,0x23,0x01,0x00,0x00
# ATT: {nf} shlb %cl, 291(%r8,%rax,4), %bl
# INTEL: {nf} shl bl, byte ptr [r8 + 4*rax + 291], cl
0x62,0xd4,0x64,0x1c,0xd2,0xa4,0x80,0x23,0x01,0x00,0x00
# ATT: {evex} shlw %cl, 291(%r8,%rax,4)
# INTEL: {evex} shl word ptr [r8 + 4*rax + 291], cl
0x62,0xd4,0x7d,0x08,0xd3,0xa4,0x80,0x23,0x01,0x00,0x00
# ATT: {nf} shlw %cl, 291(%r8,%rax,4)
# INTEL: {nf} shl word ptr [r8 + 4*rax + 291], cl
0x62,0xd4,0x7d,0x0c,0xd3,0xa4,0x80,0x23,0x01,0x00,0x00
# ATT: shlw %cl, 291(%r8,%rax,4), %dx
# INTEL: shl dx, word ptr [r8 + 4*rax + 291], cl
0x62,0xd4,0x6d,0x18,0xd3,0xa4,0x80,0x23,0x01,0x00,0x00
# ATT: {nf} shlw %cl, 291(%r8,%rax,4), %dx
# INTEL: {nf} shl dx, word ptr [r8 + 4*rax + 291], cl
0x62,0xd4,0x6d,0x1c,0xd3,0xa4,0x80,0x23,0x01,0x00,0x00
# ATT: {evex} shll %cl, 291(%r8,%rax,4)
# INTEL: {evex} shl dword ptr [r8 + 4*rax + 291], cl
0x62,0xd4,0x7c,0x08,0xd3,0xa4,0x80,0x23,0x01,0x00,0x00
# ATT: {nf} shll %cl, 291(%r8,%rax,4)
# INTEL: {nf} shl dword ptr [r8 + 4*rax + 291], cl
0x62,0xd4,0x7c,0x0c,0xd3,0xa4,0x80,0x23,0x01,0x00,0x00
# ATT: shll %cl, 291(%r8,%rax,4), %ecx
# INTEL: shl ecx, dword ptr [r8 + 4*rax + 291], cl
0x62,0xd4,0x74,0x18,0xd3,0xa4,0x80,0x23,0x01,0x00,0x00
# ATT: {nf} shll %cl, 291(%r8,%rax,4), %ecx
# INTEL: {nf} shl ecx, dword ptr [r8 + 4*rax + 291], cl
0x62,0xd4,0x74,0x1c,0xd3,0xa4,0x80,0x23,0x01,0x00,0x00
# ATT: {evex} shlq %cl, 291(%r8,%rax,4)
# INTEL: {evex} shl qword ptr [r8 + 4*rax + 291], cl
0x62,0xd4,0xfc,0x08,0xd3,0xa4,0x80,0x23,0x01,0x00,0x00
# ATT: {nf} shlq %cl, 291(%r8,%rax,4)
# INTEL: {nf} shl qword ptr [r8 + 4*rax + 291], cl
0x62,0xd4,0xfc,0x0c,0xd3,0xa4,0x80,0x23,0x01,0x00,0x00
# ATT: shlq %cl, 291(%r8,%rax,4), %r9
# INTEL: shl r9, qword ptr [r8 + 4*rax + 291], cl
0x62,0xd4,0xb4,0x18,0xd3,0xa4,0x80,0x23,0x01,0x00,0x00
# ATT: {nf} shlq %cl, 291(%r8,%rax,4), %r9
# INTEL: {nf} shl r9, qword ptr [r8 + 4*rax + 291], cl
0x62,0xd4,0xb4,0x1c,0xd3,0xa4,0x80,0x23,0x01,0x00,0x00
# ATT: {evex} shlw %dx
# INTEL: {evex} shl dx
0x62,0xf4,0x7d,0x08,0xd1,0xe2
# ATT: {nf} shlw %dx
# INTEL: {nf} shl dx
0x62,0xf4,0x7d,0x0c,0xd1,0xe2
# ATT: shlw %dx, %dx
# INTEL: shl dx, dx
0x62,0xf4,0x6d,0x18,0xd1,0xe2
# ATT: {nf} shlw %dx, %dx
# INTEL: {nf} shl dx, dx
0x62,0xf4,0x6d,0x1c,0xd1,0xe2
# ATT: {evex} shll %ecx
# INTEL: {evex} shl ecx
0x62,0xf4,0x7c,0x08,0xd1,0xe1
# ATT: {nf} shll %ecx
# INTEL: {nf} shl ecx
0x62,0xf4,0x7c,0x0c,0xd1,0xe1
# ATT: shll %ecx, %ecx
# INTEL: shl ecx, ecx
0x62,0xf4,0x74,0x18,0xd1,0xe1
# ATT: {nf} shll %ecx, %ecx
# INTEL: {nf} shl ecx, ecx
0x62,0xf4,0x74,0x1c,0xd1,0xe1
# ATT: {evex} shlq %r9
# INTEL: {evex} shl r9
0x62,0xd4,0xfc,0x08,0xd1,0xe1
# ATT: {nf} shlq %r9
# INTEL: {nf} shl r9
0x62,0xd4,0xfc,0x0c,0xd1,0xe1
# ATT: shlq %r9, %r9
# INTEL: shl r9, r9
0x62,0xd4,0xb4,0x18,0xd1,0xe1
# ATT: {nf} shlq %r9, %r9
# INTEL: {nf} shl r9, r9
0x62,0xd4,0xb4,0x1c,0xd1,0xe1
# ATT: {evex} shlb 291(%r8,%rax,4)
# INTEL: {evex} shl byte ptr [r8 + 4*rax + 291]
0x62,0xd4,0x7c,0x08,0xd0,0xa4,0x80,0x23,0x01,0x00,0x00
# ATT: {nf} shlb 291(%r8,%rax,4)
# INTEL: {nf} shl byte ptr [r8 + 4*rax + 291]
0x62,0xd4,0x7c,0x0c,0xd0,0xa4,0x80,0x23,0x01,0x00,0x00
# ATT: shlb 291(%r8,%rax,4), %bl
# INTEL: shl bl, byte ptr [r8 + 4*rax + 291]
0x62,0xd4,0x64,0x18,0xd0,0xa4,0x80,0x23,0x01,0x00,0x00
# ATT: {nf} shlb 291(%r8,%rax,4), %bl
# INTEL: {nf} shl bl, byte ptr [r8 + 4*rax + 291]
0x62,0xd4,0x64,0x1c,0xd0,0xa4,0x80,0x23,0x01,0x00,0x00
# ATT: {evex} shlw 291(%r8,%rax,4)
# INTEL: {evex} shl word ptr [r8 + 4*rax + 291]
0x62,0xd4,0x7d,0x08,0xd1,0xa4,0x80,0x23,0x01,0x00,0x00
# ATT: {nf} shlw 291(%r8,%rax,4)
# INTEL: {nf} shl word ptr [r8 + 4*rax + 291]
0x62,0xd4,0x7d,0x0c,0xd1,0xa4,0x80,0x23,0x01,0x00,0x00
# ATT: shlw 291(%r8,%rax,4), %dx
# INTEL: shl dx, word ptr [r8 + 4*rax + 291]
0x62,0xd4,0x6d,0x18,0xd1,0xa4,0x80,0x23,0x01,0x00,0x00
# ATT: {nf} shlw 291(%r8,%rax,4), %dx
# INTEL: {nf} shl dx, word ptr [r8 + 4*rax + 291]
0x62,0xd4,0x6d,0x1c,0xd1,0xa4,0x80,0x23,0x01,0x00,0x00
# ATT: {evex} shll 291(%r8,%rax,4)
# INTEL: {evex} shl dword ptr [r8 + 4*rax + 291]
0x62,0xd4,0x7c,0x08,0xd1,0xa4,0x80,0x23,0x01,0x00,0x00
# ATT: {nf} shll 291(%r8,%rax,4)
# INTEL: {nf} shl dword ptr [r8 + 4*rax + 291]
0x62,0xd4,0x7c,0x0c,0xd1,0xa4,0x80,0x23,0x01,0x00,0x00
# ATT: shll 291(%r8,%rax,4), %ecx
# INTEL: shl ecx, dword ptr [r8 + 4*rax + 291]
0x62,0xd4,0x74,0x18,0xd1,0xa4,0x80,0x23,0x01,0x00,0x00
# ATT: {nf} shll 291(%r8,%rax,4), %ecx
# INTEL: {nf} shl ecx, dword ptr [r8 + 4*rax + 291]
0x62,0xd4,0x74,0x1c,0xd1,0xa4,0x80,0x23,0x01,0x00,0x00
# ATT: {evex} shlq 291(%r8,%rax,4)
# INTEL: {evex} shl qword ptr [r8 + 4*rax + 291]
0x62,0xd4,0xfc,0x08,0xd1,0xa4,0x80,0x23,0x01,0x00,0x00
# ATT: {nf} shlq 291(%r8,%rax,4)
# INTEL: {nf} shl qword ptr [r8 + 4*rax + 291]
0x62,0xd4,0xfc,0x0c,0xd1,0xa4,0x80,0x23,0x01,0x00,0x00
# ATT: shlq 291(%r8,%rax,4), %r9
# INTEL: shl r9, qword ptr [r8 + 4*rax + 291]
0x62,0xd4,0xb4,0x18,0xd1,0xa4,0x80,0x23,0x01,0x00,0x00
# ATT: {nf} shlq 291(%r8,%rax,4), %r9
# INTEL: {nf} shl r9, qword ptr [r8 + 4*rax + 291]
0x62,0xd4,0xb4,0x1c,0xd1,0xa4,0x80,0x23,0x01,0x00,0x00