# 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} shldw $123, %dx, %dx
# INTEL: {evex} shld dx, dx, 123
0x62,0xf4,0x7d,0x08,0x24,0xd2,0x7b
# ATT: {nf} shldw $123, %dx, %dx
# INTEL: {nf} shld dx, dx, 123
0x62,0xf4,0x7d,0x0c,0x24,0xd2,0x7b
# ATT: shldw $123, %dx, %dx, %dx
# INTEL: shld dx, dx, dx, 123
0x62,0xf4,0x6d,0x18,0x24,0xd2,0x7b
# ATT: {nf} shldw $123, %dx, %dx, %dx
# INTEL: {nf} shld dx, dx, dx, 123
0x62,0xf4,0x6d,0x1c,0x24,0xd2,0x7b
# ATT: {evex} shldw $123, %dx, 291(%r8,%rax,4)
# INTEL: {evex} shld word ptr [r8 + 4*rax + 291], dx, 123
0x62,0xd4,0x7d,0x08,0x24,0x94,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: {nf} shldw $123, %dx, 291(%r8,%rax,4)
# INTEL: {nf} shld word ptr [r8 + 4*rax + 291], dx, 123
0x62,0xd4,0x7d,0x0c,0x24,0x94,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: shldw $123, %dx, 291(%r8,%rax,4), %dx
# INTEL: shld dx, word ptr [r8 + 4*rax + 291], dx, 123
0x62,0xd4,0x6d,0x18,0x24,0x94,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: {nf} shldw $123, %dx, 291(%r8,%rax,4), %dx
# INTEL: {nf} shld dx, word ptr [r8 + 4*rax + 291], dx, 123
0x62,0xd4,0x6d,0x1c,0x24,0x94,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: {evex} shldl $123, %ecx, %ecx
# INTEL: {evex} shld ecx, ecx, 123
0x62,0xf4,0x7c,0x08,0x24,0xc9,0x7b
# ATT: {nf} shldl $123, %ecx, %ecx
# INTEL: {nf} shld ecx, ecx, 123
0x62,0xf4,0x7c,0x0c,0x24,0xc9,0x7b
# ATT: shldl $123, %ecx, %ecx, %ecx
# INTEL: shld ecx, ecx, ecx, 123
0x62,0xf4,0x74,0x18,0x24,0xc9,0x7b
# ATT: {nf} shldl $123, %ecx, %ecx, %ecx
# INTEL: {nf} shld ecx, ecx, ecx, 123
0x62,0xf4,0x74,0x1c,0x24,0xc9,0x7b
# ATT: {evex} shldl $123, %ecx, 291(%r8,%rax,4)
# INTEL: {evex} shld dword ptr [r8 + 4*rax + 291], ecx, 123
0x62,0xd4,0x7c,0x08,0x24,0x8c,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: {nf} shldl $123, %ecx, 291(%r8,%rax,4)
# INTEL: {nf} shld dword ptr [r8 + 4*rax + 291], ecx, 123
0x62,0xd4,0x7c,0x0c,0x24,0x8c,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: shldl $123, %ecx, 291(%r8,%rax,4), %ecx
# INTEL: shld ecx, dword ptr [r8 + 4*rax + 291], ecx, 123
0x62,0xd4,0x74,0x18,0x24,0x8c,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: {nf} shldl $123, %ecx, 291(%r8,%rax,4), %ecx
# INTEL: {nf} shld ecx, dword ptr [r8 + 4*rax + 291], ecx, 123
0x62,0xd4,0x74,0x1c,0x24,0x8c,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: {evex} shldq $123, %r9, %r9
# INTEL: {evex} shld r9, r9, 123
0x62,0x54,0xfc,0x08,0x24,0xc9,0x7b
# ATT: {nf} shldq $123, %r9, %r9
# INTEL: {nf} shld r9, r9, 123
0x62,0x54,0xfc,0x0c,0x24,0xc9,0x7b
# ATT: shldq $123, %r9, %r9, %r9
# INTEL: shld r9, r9, r9, 123
0x62,0x54,0xb4,0x18,0x24,0xc9,0x7b
# ATT: {nf} shldq $123, %r9, %r9, %r9
# INTEL: {nf} shld r9, r9, r9, 123
0x62,0x54,0xb4,0x1c,0x24,0xc9,0x7b
# ATT: {evex} shldq $123, %r9, 291(%r8,%rax,4)
# INTEL: {evex} shld qword ptr [r8 + 4*rax + 291], r9, 123
0x62,0x54,0xfc,0x08,0x24,0x8c,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: {nf} shldq $123, %r9, 291(%r8,%rax,4)
# INTEL: {nf} shld qword ptr [r8 + 4*rax + 291], r9, 123
0x62,0x54,0xfc,0x0c,0x24,0x8c,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: shldq $123, %r9, 291(%r8,%rax,4), %r9
# INTEL: shld r9, qword ptr [r8 + 4*rax + 291], r9, 123
0x62,0x54,0xb4,0x18,0x24,0x8c,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: {nf} shldq $123, %r9, 291(%r8,%rax,4), %r9
# INTEL: {nf} shld r9, qword ptr [r8 + 4*rax + 291], r9, 123
0x62,0x54,0xb4,0x1c,0x24,0x8c,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: {evex} shldw %cl, %dx, %dx
# INTEL: {evex} shld dx, dx, cl
0x62,0xf4,0x7d,0x08,0xa5,0xd2
# ATT: {nf} shldw %cl, %dx, %dx
# INTEL: {nf} shld dx, dx, cl
0x62,0xf4,0x7d,0x0c,0xa5,0xd2
# ATT: shldw %cl, %dx, %dx, %dx
# INTEL: shld dx, dx, dx, cl
0x62,0xf4,0x6d,0x18,0xa5,0xd2
# ATT: {nf} shldw %cl, %dx, %dx, %dx
# INTEL: {nf} shld dx, dx, dx, cl
0x62,0xf4,0x6d,0x1c,0xa5,0xd2
# ATT: {evex} shldw %cl, %dx, 291(%r8,%rax,4)
# INTEL: {evex} shld word ptr [r8 + 4*rax + 291], dx, cl
0x62,0xd4,0x7d,0x08,0xa5,0x94,0x80,0x23,0x01,0x00,0x00
# ATT: {nf} shldw %cl, %dx, 291(%r8,%rax,4)
# INTEL: {nf} shld word ptr [r8 + 4*rax + 291], dx, cl
0x62,0xd4,0x7d,0x0c,0xa5,0x94,0x80,0x23,0x01,0x00,0x00
# ATT: shldw %cl, %dx, 291(%r8,%rax,4), %dx
# INTEL: shld dx, word ptr [r8 + 4*rax + 291], dx, cl
0x62,0xd4,0x6d,0x18,0xa5,0x94,0x80,0x23,0x01,0x00,0x00
# ATT: {nf} shldw %cl, %dx, 291(%r8,%rax,4), %dx
# INTEL: {nf} shld dx, word ptr [r8 + 4*rax + 291], dx, cl
0x62,0xd4,0x6d,0x1c,0xa5,0x94,0x80,0x23,0x01,0x00,0x00
# ATT: {evex} shldl %cl, %ecx, %ecx
# INTEL: {evex} shld ecx, ecx, cl
0x62,0xf4,0x7c,0x08,0xa5,0xc9
# ATT: {nf} shldl %cl, %ecx, %ecx
# INTEL: {nf} shld ecx, ecx, cl
0x62,0xf4,0x7c,0x0c,0xa5,0xc9
# ATT: shldl %cl, %ecx, %ecx, %ecx
# INTEL: shld ecx, ecx, ecx, cl
0x62,0xf4,0x74,0x18,0xa5,0xc9
# ATT: {nf} shldl %cl, %ecx, %ecx, %ecx
# INTEL: {nf} shld ecx, ecx, ecx, cl
0x62,0xf4,0x74,0x1c,0xa5,0xc9
# ATT: {evex} shldl %cl, %ecx, 291(%r8,%rax,4)
# INTEL: {evex} shld dword ptr [r8 + 4*rax + 291], ecx, cl
0x62,0xd4,0x7c,0x08,0xa5,0x8c,0x80,0x23,0x01,0x00,0x00
# ATT: {nf} shldl %cl, %ecx, 291(%r8,%rax,4)
# INTEL: {nf} shld dword ptr [r8 + 4*rax + 291], ecx, cl
0x62,0xd4,0x7c,0x0c,0xa5,0x8c,0x80,0x23,0x01,0x00,0x00
# ATT: shldl %cl, %ecx, 291(%r8,%rax,4), %ecx
# INTEL: shld ecx, dword ptr [r8 + 4*rax + 291], ecx, cl
0x62,0xd4,0x74,0x18,0xa5,0x8c,0x80,0x23,0x01,0x00,0x00
# ATT: {nf} shldl %cl, %ecx, 291(%r8,%rax,4), %ecx
# INTEL: {nf} shld ecx, dword ptr [r8 + 4*rax + 291], ecx, cl
0x62,0xd4,0x74,0x1c,0xa5,0x8c,0x80,0x23,0x01,0x00,0x00
# ATT: {evex} shldq %cl, %r9, %r9
# INTEL: {evex} shld r9, r9, cl
0x62,0x54,0xfc,0x08,0xa5,0xc9
# ATT: {nf} shldq %cl, %r9, %r9
# INTEL: {nf} shld r9, r9, cl
0x62,0x54,0xfc,0x0c,0xa5,0xc9
# ATT: shldq %cl, %r9, %r9, %r9
# INTEL: shld r9, r9, r9, cl
0x62,0x54,0xb4,0x18,0xa5,0xc9
# ATT: {nf} shldq %cl, %r9, %r9, %r9
# INTEL: {nf} shld r9, r9, r9, cl
0x62,0x54,0xb4,0x1c,0xa5,0xc9
# ATT: {evex} shldq %cl, %r9, 291(%r8,%rax,4)
# INTEL: {evex} shld qword ptr [r8 + 4*rax + 291], r9, cl
0x62,0x54,0xfc,0x08,0xa5,0x8c,0x80,0x23,0x01,0x00,0x00
# ATT: {nf} shldq %cl, %r9, 291(%r8,%rax,4)
# INTEL: {nf} shld qword ptr [r8 + 4*rax + 291], r9, cl
0x62,0x54,0xfc,0x0c,0xa5,0x8c,0x80,0x23,0x01,0x00,0x00
# ATT: shldq %cl, %r9, 291(%r8,%rax,4), %r9
# INTEL: shld r9, qword ptr [r8 + 4*rax + 291], r9, cl
0x62,0x54,0xb4,0x18,0xa5,0x8c,0x80,0x23,0x01,0x00,0x00
# ATT: {nf} shldq %cl, %r9, 291(%r8,%rax,4), %r9
# INTEL: {nf} shld r9, qword ptr [r8 + 4*rax + 291], r9, cl
0x62,0x54,0xb4,0x1c,0xa5,0x8c,0x80,0x23,0x01,0x00,0x00