llvm/llvm/test/MC/Disassembler/X86/apx/imul.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}	imulw	$123, %dx, %dx
# INTEL: {evex}	imul	dx, dx, 123
0x62,0xf4,0x7d,0x08,0x6b,0xd2,0x7b

# ATT:   {nf}	imulw	$123, %dx, %dx
# INTEL: {nf}	imul	dx, dx, 123
0x62,0xf4,0x7d,0x0c,0x6b,0xd2,0x7b

# ATT:   {evex}	imull	$123, %ecx, %ecx
# INTEL: {evex}	imul	ecx, ecx, 123
0x62,0xf4,0x7c,0x08,0x6b,0xc9,0x7b

# ATT:   {nf}	imull	$123, %ecx, %ecx
# INTEL: {nf}	imul	ecx, ecx, 123
0x62,0xf4,0x7c,0x0c,0x6b,0xc9,0x7b

# ATT:   {evex}	imulq	$123, %r9, %r9
# INTEL: {evex}	imul	r9, r9, 123
0x62,0x54,0xfc,0x08,0x6b,0xc9,0x7b

# ATT:   {nf}	imulq	$123, %r9, %r9
# INTEL: {nf}	imul	r9, r9, 123
0x62,0x54,0xfc,0x0c,0x6b,0xc9,0x7b

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

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

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

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

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

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

# ATT:   {evex}	imulw	$1234, %dx, %dx
# INTEL: {evex}	imul	dx, dx, 1234
0x62,0xf4,0x7d,0x08,0x69,0xd2,0xd2,0x04

# ATT:   {nf}	imulw	$1234, %dx, %dx
# INTEL: {nf}	imul	dx, dx, 1234
0x62,0xf4,0x7d,0x0c,0x69,0xd2,0xd2,0x04

# ATT:   {evex}	imulw	$1234, 291(%r8,%rax,4), %dx
# INTEL: {evex}	imul	dx, word ptr [r8 + 4*rax + 291], 1234
0x62,0xd4,0x7d,0x08,0x69,0x94,0x80,0x23,0x01,0x00,0x00,0xd2,0x04

# ATT:   {nf}	imulw	$1234, 291(%r8,%rax,4), %dx
# INTEL: {nf}	imul	dx, word ptr [r8 + 4*rax + 291], 1234
0x62,0xd4,0x7d,0x0c,0x69,0x94,0x80,0x23,0x01,0x00,0x00,0xd2,0x04

# ATT:   {evex}	imull	$123456, %ecx, %ecx
# INTEL: {evex}	imul	ecx, ecx, 123456
0x62,0xf4,0x7c,0x08,0x69,0xc9,0x40,0xe2,0x01,0x00

# ATT:   {nf}	imull	$123456, %ecx, %ecx
# INTEL: {nf}	imul	ecx, ecx, 123456
0x62,0xf4,0x7c,0x0c,0x69,0xc9,0x40,0xe2,0x01,0x00

# ATT:   {evex}	imulq	$123456, %r9, %r9
# INTEL: {evex}	imul	r9, r9, 123456
0x62,0x54,0xfc,0x08,0x69,0xc9,0x40,0xe2,0x01,0x00

# ATT:   {nf}	imulq	$123456, %r9, %r9
# INTEL: {nf}	imul	r9, r9, 123456
0x62,0x54,0xfc,0x0c,0x69,0xc9,0x40,0xe2,0x01,0x00

# ATT:   {evex}	imull	$123456, 291(%r8,%rax,4), %ecx
# INTEL: {evex}	imul	ecx, dword ptr [r8 + 4*rax + 291], 123456
0x62,0xd4,0x7c,0x08,0x69,0x8c,0x80,0x23,0x01,0x00,0x00,0x40,0xe2,0x01,0x00

# ATT:   {nf}	imull	$123456, 291(%r8,%rax,4), %ecx
# INTEL: {nf}	imul	ecx, dword ptr [r8 + 4*rax + 291], 123456
0x62,0xd4,0x7c,0x0c,0x69,0x8c,0x80,0x23,0x01,0x00,0x00,0x40,0xe2,0x01,0x00

# ATT:   {evex}	imulq	$123456, 291(%r8,%rax,4), %r9
# INTEL: {evex}	imul	r9, qword ptr [r8 + 4*rax + 291], 123456
0x62,0x54,0xfc,0x08,0x69,0x8c,0x80,0x23,0x01,0x00,0x00,0x40,0xe2,0x01,0x00

# ATT:   {nf}	imulq	$123456, 291(%r8,%rax,4), %r9
# INTEL: {nf}	imul	r9, qword ptr [r8 + 4*rax + 291], 123456
0x62,0x54,0xfc,0x0c,0x69,0x8c,0x80,0x23,0x01,0x00,0x00,0x40,0xe2,0x01,0x00

# ATT:   {evex}	imulb	%bl
# INTEL: {evex}	imul	bl
0x62,0xf4,0x7c,0x08,0xf6,0xeb

# ATT:   {nf}	imulb	%bl
# INTEL: {nf}	imul	bl
0x62,0xf4,0x7c,0x0c,0xf6,0xeb

# ATT:   {evex}	imulw	%dx
# INTEL: {evex}	imul	dx
0x62,0xf4,0x7d,0x08,0xf7,0xea

# ATT:   {nf}	imulw	%dx
# INTEL: {nf}	imul	dx
0x62,0xf4,0x7d,0x0c,0xf7,0xea

# ATT:   {evex}	imulw	%dx, %dx
# INTEL: {evex}	imul	dx, dx
0x62,0xf4,0x7d,0x08,0xaf,0xd2

# ATT:   {nf}	imulw	%dx, %dx
# INTEL: {nf}	imul	dx, dx
0x62,0xf4,0x7d,0x0c,0xaf,0xd2

# ATT:   imulw	%dx, %dx, %dx
# INTEL: imul	dx, dx, dx
0x62,0xf4,0x6d,0x18,0xaf,0xd2

# ATT:   {nf}	imulw	%dx, %dx, %dx
# INTEL: {nf}	imul	dx, dx, dx
0x62,0xf4,0x6d,0x1c,0xaf,0xd2

# ATT:   {evex}	imull	%ecx
# INTEL: {evex}	imul	ecx
0x62,0xf4,0x7c,0x08,0xf7,0xe9

# ATT:   {nf}	imull	%ecx
# INTEL: {nf}	imul	ecx
0x62,0xf4,0x7c,0x0c,0xf7,0xe9

# ATT:   {evex}	imull	%ecx, %ecx
# INTEL: {evex}	imul	ecx, ecx
0x62,0xf4,0x7c,0x08,0xaf,0xc9

# ATT:   {nf}	imull	%ecx, %ecx
# INTEL: {nf}	imul	ecx, ecx
0x62,0xf4,0x7c,0x0c,0xaf,0xc9

# ATT:   imull	%ecx, %ecx, %ecx
# INTEL: imul	ecx, ecx, ecx
0x62,0xf4,0x74,0x18,0xaf,0xc9

# ATT:   {nf}	imull	%ecx, %ecx, %ecx
# INTEL: {nf}	imul	ecx, ecx, ecx
0x62,0xf4,0x74,0x1c,0xaf,0xc9

# ATT:   {evex}	imulq	%r9
# INTEL: {evex}	imul	r9
0x62,0xd4,0xfc,0x08,0xf7,0xe9

# ATT:   {nf}	imulq	%r9
# INTEL: {nf}	imul	r9
0x62,0xd4,0xfc,0x0c,0xf7,0xe9

# ATT:   {evex}	imulq	%r9, %r9
# INTEL: {evex}	imul	r9, r9
0x62,0x54,0xfc,0x08,0xaf,0xc9

# ATT:   {nf}	imulq	%r9, %r9
# INTEL: {nf}	imul	r9, r9
0x62,0x54,0xfc,0x0c,0xaf,0xc9

# ATT:   imulq	%r9, %r9, %r9
# INTEL: imul	r9, r9, r9
0x62,0x54,0xb4,0x18,0xaf,0xc9

# ATT:   {nf}	imulq	%r9, %r9, %r9
# INTEL: {nf}	imul	r9, r9, r9
0x62,0x54,0xb4,0x1c,0xaf,0xc9

# ATT:   {evex}	imulb	291(%r8,%rax,4)
# INTEL: {evex}	imul	byte ptr [r8 + 4*rax + 291]
0x62,0xd4,0x7c,0x08,0xf6,0xac,0x80,0x23,0x01,0x00,0x00

# ATT:   {nf}	imulb	291(%r8,%rax,4)
# INTEL: {nf}	imul	byte ptr [r8 + 4*rax + 291]
0x62,0xd4,0x7c,0x0c,0xf6,0xac,0x80,0x23,0x01,0x00,0x00

# ATT:   {evex}	imulw	291(%r8,%rax,4)
# INTEL: {evex}	imul	word ptr [r8 + 4*rax + 291]
0x62,0xd4,0x7d,0x08,0xf7,0xac,0x80,0x23,0x01,0x00,0x00

# ATT:   {nf}	imulw	291(%r8,%rax,4)
# INTEL: {nf}	imul	word ptr [r8 + 4*rax + 291]
0x62,0xd4,0x7d,0x0c,0xf7,0xac,0x80,0x23,0x01,0x00,0x00

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

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

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

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

# ATT:   {evex}	imull	291(%r8,%rax,4)
# INTEL: {evex}	imul	dword ptr [r8 + 4*rax + 291]
0x62,0xd4,0x7c,0x08,0xf7,0xac,0x80,0x23,0x01,0x00,0x00

# ATT:   {nf}	imull	291(%r8,%rax,4)
# INTEL: {nf}	imul	dword ptr [r8 + 4*rax + 291]
0x62,0xd4,0x7c,0x0c,0xf7,0xac,0x80,0x23,0x01,0x00,0x00

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

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

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

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

# ATT:   {evex}	imulq	291(%r8,%rax,4)
# INTEL: {evex}	imul	qword ptr [r8 + 4*rax + 291]
0x62,0xd4,0xfc,0x08,0xf7,0xac,0x80,0x23,0x01,0x00,0x00

# ATT:   {nf}	imulq	291(%r8,%rax,4)
# INTEL: {nf}	imul	qword ptr [r8 + 4*rax + 291]
0x62,0xd4,0xfc,0x0c,0xf7,0xac,0x80,0x23,0x01,0x00,0x00

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

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

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

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