llvm/llvm/test/MC/Disassembler/X86/apx/shrd.txt

# 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}	shrdw	$123, %dx, %dx
# INTEL: {evex}	shrd	dx, dx, 123
0x62,0xf4,0x7d,0x08,0x2c,0xd2,0x7b

# ATT:   {nf}	shrdw	$123, %dx, %dx
# INTEL: {nf}	shrd	dx, dx, 123
0x62,0xf4,0x7d,0x0c,0x2c,0xd2,0x7b

# ATT:   shrdw	$123, %dx, %dx, %dx
# INTEL: shrd	dx, dx, dx, 123
0x62,0xf4,0x6d,0x18,0x2c,0xd2,0x7b

# ATT:   {nf}	shrdw	$123, %dx, %dx, %dx
# INTEL: {nf}	shrd	dx, dx, dx, 123
0x62,0xf4,0x6d,0x1c,0x2c,0xd2,0x7b

# ATT:   {evex}	shrdw	$123, %dx, 291(%r8,%rax,4)
# INTEL: {evex}	shrd	word ptr [r8 + 4*rax + 291], dx, 123
0x62,0xd4,0x7d,0x08,0x2c,0x94,0x80,0x23,0x01,0x00,0x00,0x7b

# ATT:   {nf}	shrdw	$123, %dx, 291(%r8,%rax,4)
# INTEL: {nf}	shrd	word ptr [r8 + 4*rax + 291], dx, 123
0x62,0xd4,0x7d,0x0c,0x2c,0x94,0x80,0x23,0x01,0x00,0x00,0x7b

# ATT:   shrdw	$123, %dx, 291(%r8,%rax,4), %dx
# INTEL: shrd	dx, word ptr [r8 + 4*rax + 291], dx, 123
0x62,0xd4,0x6d,0x18,0x2c,0x94,0x80,0x23,0x01,0x00,0x00,0x7b

# ATT:   {nf}	shrdw	$123, %dx, 291(%r8,%rax,4), %dx
# INTEL: {nf}	shrd	dx, word ptr [r8 + 4*rax + 291], dx, 123
0x62,0xd4,0x6d,0x1c,0x2c,0x94,0x80,0x23,0x01,0x00,0x00,0x7b

# ATT:   {evex}	shrdl	$123, %ecx, %ecx
# INTEL: {evex}	shrd	ecx, ecx, 123
0x62,0xf4,0x7c,0x08,0x2c,0xc9,0x7b

# ATT:   {nf}	shrdl	$123, %ecx, %ecx
# INTEL: {nf}	shrd	ecx, ecx, 123
0x62,0xf4,0x7c,0x0c,0x2c,0xc9,0x7b

# ATT:   shrdl	$123, %ecx, %ecx, %ecx
# INTEL: shrd	ecx, ecx, ecx, 123
0x62,0xf4,0x74,0x18,0x2c,0xc9,0x7b

# ATT:   {nf}	shrdl	$123, %ecx, %ecx, %ecx
# INTEL: {nf}	shrd	ecx, ecx, ecx, 123
0x62,0xf4,0x74,0x1c,0x2c,0xc9,0x7b

# ATT:   {evex}	shrdl	$123, %ecx, 291(%r8,%rax,4)
# INTEL: {evex}	shrd	dword ptr [r8 + 4*rax + 291], ecx, 123
0x62,0xd4,0x7c,0x08,0x2c,0x8c,0x80,0x23,0x01,0x00,0x00,0x7b

# ATT:   {nf}	shrdl	$123, %ecx, 291(%r8,%rax,4)
# INTEL: {nf}	shrd	dword ptr [r8 + 4*rax + 291], ecx, 123
0x62,0xd4,0x7c,0x0c,0x2c,0x8c,0x80,0x23,0x01,0x00,0x00,0x7b

# ATT:   shrdl	$123, %ecx, 291(%r8,%rax,4), %ecx
# INTEL: shrd	ecx, dword ptr [r8 + 4*rax + 291], ecx, 123
0x62,0xd4,0x74,0x18,0x2c,0x8c,0x80,0x23,0x01,0x00,0x00,0x7b

# ATT:   {nf}	shrdl	$123, %ecx, 291(%r8,%rax,4), %ecx
# INTEL: {nf}	shrd	ecx, dword ptr [r8 + 4*rax + 291], ecx, 123
0x62,0xd4,0x74,0x1c,0x2c,0x8c,0x80,0x23,0x01,0x00,0x00,0x7b

# ATT:   {evex}	shrdq	$123, %r9, %r9
# INTEL: {evex}	shrd	r9, r9, 123
0x62,0x54,0xfc,0x08,0x2c,0xc9,0x7b

# ATT:   {nf}	shrdq	$123, %r9, %r9
# INTEL: {nf}	shrd	r9, r9, 123
0x62,0x54,0xfc,0x0c,0x2c,0xc9,0x7b

# ATT:   shrdq	$123, %r9, %r9, %r9
# INTEL: shrd	r9, r9, r9, 123
0x62,0x54,0xb4,0x18,0x2c,0xc9,0x7b

# ATT:   {nf}	shrdq	$123, %r9, %r9, %r9
# INTEL: {nf}	shrd	r9, r9, r9, 123
0x62,0x54,0xb4,0x1c,0x2c,0xc9,0x7b

# ATT:   {evex}	shrdq	$123, %r9, 291(%r8,%rax,4)
# INTEL: {evex}	shrd	qword ptr [r8 + 4*rax + 291], r9, 123
0x62,0x54,0xfc,0x08,0x2c,0x8c,0x80,0x23,0x01,0x00,0x00,0x7b

# ATT:   {nf}	shrdq	$123, %r9, 291(%r8,%rax,4)
# INTEL: {nf}	shrd	qword ptr [r8 + 4*rax + 291], r9, 123
0x62,0x54,0xfc,0x0c,0x2c,0x8c,0x80,0x23,0x01,0x00,0x00,0x7b

# ATT:   shrdq	$123, %r9, 291(%r8,%rax,4), %r9
# INTEL: shrd	r9, qword ptr [r8 + 4*rax + 291], r9, 123
0x62,0x54,0xb4,0x18,0x2c,0x8c,0x80,0x23,0x01,0x00,0x00,0x7b

# ATT:   {nf}	shrdq	$123, %r9, 291(%r8,%rax,4), %r9
# INTEL: {nf}	shrd	r9, qword ptr [r8 + 4*rax + 291], r9, 123
0x62,0x54,0xb4,0x1c,0x2c,0x8c,0x80,0x23,0x01,0x00,0x00,0x7b

# ATT:   {evex}	shrdw	%cl, %dx, %dx
# INTEL: {evex}	shrd	dx, dx, cl
0x62,0xf4,0x7d,0x08,0xad,0xd2

# ATT:   {nf}	shrdw	%cl, %dx, %dx
# INTEL: {nf}	shrd	dx, dx, cl
0x62,0xf4,0x7d,0x0c,0xad,0xd2

# ATT:   shrdw	%cl, %dx, %dx, %dx
# INTEL: shrd	dx, dx, dx, cl
0x62,0xf4,0x6d,0x18,0xad,0xd2

# ATT:   {nf}	shrdw	%cl, %dx, %dx, %dx
# INTEL: {nf}	shrd	dx, dx, dx, cl
0x62,0xf4,0x6d,0x1c,0xad,0xd2

# ATT:   {evex}	shrdw	%cl, %dx, 291(%r8,%rax,4)
# INTEL: {evex}	shrd	word ptr [r8 + 4*rax + 291], dx, cl
0x62,0xd4,0x7d,0x08,0xad,0x94,0x80,0x23,0x01,0x00,0x00

# ATT:   {nf}	shrdw	%cl, %dx, 291(%r8,%rax,4)
# INTEL: {nf}	shrd	word ptr [r8 + 4*rax + 291], dx, cl
0x62,0xd4,0x7d,0x0c,0xad,0x94,0x80,0x23,0x01,0x00,0x00

# ATT:   shrdw	%cl, %dx, 291(%r8,%rax,4), %dx
# INTEL: shrd	dx, word ptr [r8 + 4*rax + 291], dx, cl
0x62,0xd4,0x6d,0x18,0xad,0x94,0x80,0x23,0x01,0x00,0x00

# ATT:   {nf}	shrdw	%cl, %dx, 291(%r8,%rax,4), %dx
# INTEL: {nf}	shrd	dx, word ptr [r8 + 4*rax + 291], dx, cl
0x62,0xd4,0x6d,0x1c,0xad,0x94,0x80,0x23,0x01,0x00,0x00

# ATT:   {evex}	shrdl	%cl, %ecx, %ecx
# INTEL: {evex}	shrd	ecx, ecx, cl
0x62,0xf4,0x7c,0x08,0xad,0xc9

# ATT:   {nf}	shrdl	%cl, %ecx, %ecx
# INTEL: {nf}	shrd	ecx, ecx, cl
0x62,0xf4,0x7c,0x0c,0xad,0xc9

# ATT:   shrdl	%cl, %ecx, %ecx, %ecx
# INTEL: shrd	ecx, ecx, ecx, cl
0x62,0xf4,0x74,0x18,0xad,0xc9

# ATT:   {nf}	shrdl	%cl, %ecx, %ecx, %ecx
# INTEL: {nf}	shrd	ecx, ecx, ecx, cl
0x62,0xf4,0x74,0x1c,0xad,0xc9

# ATT:   {evex}	shrdl	%cl, %ecx, 291(%r8,%rax,4)
# INTEL: {evex}	shrd	dword ptr [r8 + 4*rax + 291], ecx, cl
0x62,0xd4,0x7c,0x08,0xad,0x8c,0x80,0x23,0x01,0x00,0x00

# ATT:   {nf}	shrdl	%cl, %ecx, 291(%r8,%rax,4)
# INTEL: {nf}	shrd	dword ptr [r8 + 4*rax + 291], ecx, cl
0x62,0xd4,0x7c,0x0c,0xad,0x8c,0x80,0x23,0x01,0x00,0x00

# ATT:   shrdl	%cl, %ecx, 291(%r8,%rax,4), %ecx
# INTEL: shrd	ecx, dword ptr [r8 + 4*rax + 291], ecx, cl
0x62,0xd4,0x74,0x18,0xad,0x8c,0x80,0x23,0x01,0x00,0x00

# ATT:   {nf}	shrdl	%cl, %ecx, 291(%r8,%rax,4), %ecx
# INTEL: {nf}	shrd	ecx, dword ptr [r8 + 4*rax + 291], ecx, cl
0x62,0xd4,0x74,0x1c,0xad,0x8c,0x80,0x23,0x01,0x00,0x00

# ATT:   {evex}	shrdq	%cl, %r9, %r9
# INTEL: {evex}	shrd	r9, r9, cl
0x62,0x54,0xfc,0x08,0xad,0xc9

# ATT:   {nf}	shrdq	%cl, %r9, %r9
# INTEL: {nf}	shrd	r9, r9, cl
0x62,0x54,0xfc,0x0c,0xad,0xc9

# ATT:   shrdq	%cl, %r9, %r9, %r9
# INTEL: shrd	r9, r9, r9, cl
0x62,0x54,0xb4,0x18,0xad,0xc9

# ATT:   {nf}	shrdq	%cl, %r9, %r9, %r9
# INTEL: {nf}	shrd	r9, r9, r9, cl
0x62,0x54,0xb4,0x1c,0xad,0xc9

# ATT:   {evex}	shrdq	%cl, %r9, 291(%r8,%rax,4)
# INTEL: {evex}	shrd	qword ptr [r8 + 4*rax + 291], r9, cl
0x62,0x54,0xfc,0x08,0xad,0x8c,0x80,0x23,0x01,0x00,0x00

# ATT:   {nf}	shrdq	%cl, %r9, 291(%r8,%rax,4)
# INTEL: {nf}	shrd	qword ptr [r8 + 4*rax + 291], r9, cl
0x62,0x54,0xfc,0x0c,0xad,0x8c,0x80,0x23,0x01,0x00,0x00

# ATT:   shrdq	%cl, %r9, 291(%r8,%rax,4), %r9
# INTEL: shrd	r9, qword ptr [r8 + 4*rax + 291], r9, cl
0x62,0x54,0xb4,0x18,0xad,0x8c,0x80,0x23,0x01,0x00,0x00

# ATT:   {nf}	shrdq	%cl, %r9, 291(%r8,%rax,4), %r9
# INTEL: {nf}	shrd	r9, qword ptr [r8 + 4*rax + 291], r9, cl
0x62,0x54,0xb4,0x1c,0xad,0x8c,0x80,0x23,0x01,0x00,0x00