llvm/llvm/test/MC/Disassembler/X86/apx/imulzu.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:   imulzuw	$123, %dx, %dx
# INTEL: imulzu	dx, dx, 123
0x62,0xf4,0x7d,0x18,0x6b,0xd2,0x7b

# ATT:   imulzul	$123, %ecx, %ecx
# INTEL: imulzu	ecx, ecx, 123
0x62,0xf4,0x7c,0x18,0x6b,0xc9,0x7b

# ATT:   imulzuq	$123, %r9, %r9
# INTEL: imulzu	r9, r9, 123
0x62,0x54,0xfc,0x18,0x6b,0xc9,0x7b

# ATT:   imulzuw	$123, 291(%r8,%rax,4), %dx
# INTEL: imulzu	dx, word ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0x7d,0x18,0x6b,0x94,0x80,0x23,0x01,0x00,0x00,0x7b

# ATT:   imulzul	$123, 291(%r8,%rax,4), %ecx
# INTEL: imulzu	ecx, dword ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0x7c,0x18,0x6b,0x8c,0x80,0x23,0x01,0x00,0x00,0x7b

# ATT:   imulzuq	$123, 291(%r8,%rax,4), %r9
# INTEL: imulzu	r9, qword ptr [r8 + 4*rax + 291], 123
0x62,0x54,0xfc,0x18,0x6b,0x8c,0x80,0x23,0x01,0x00,0x00,0x7b

# ATT:   imulzuw	$1234, %dx, %dx
# INTEL: imulzu	dx, dx, 1234
0x62,0xf4,0x7d,0x18,0x69,0xd2,0xd2,0x04

# ATT:   imulzuw	$1234, 291(%r8,%rax,4), %dx
# INTEL: imulzu	dx, word ptr [r8 + 4*rax + 291], 1234
0x62,0xd4,0x7d,0x18,0x69,0x94,0x80,0x23,0x01,0x00,0x00,0xd2,0x04

# ATT:   imulzul	$123456, %ecx, %ecx
# INTEL: imulzu	ecx, ecx, 123456
0x62,0xf4,0x7c,0x18,0x69,0xc9,0x40,0xe2,0x01,0x00

# ATT:   imulzuq	$123456, %r9, %r9
# INTEL: imulzu	r9, r9, 123456
0x62,0x54,0xfc,0x18,0x69,0xc9,0x40,0xe2,0x01,0x00

# ATT:   imulzul	$123456, 291(%r8,%rax,4), %ecx
# INTEL: imulzu	ecx, dword ptr [r8 + 4*rax + 291], 123456
0x62,0xd4,0x7c,0x18,0x69,0x8c,0x80,0x23,0x01,0x00,0x00,0x40,0xe2,0x01,0x00

# ATT:   imulzuq	$123456, 291(%r8,%rax,4), %r9
# INTEL: imulzu	r9, qword ptr [r8 + 4*rax + 291], 123456
0x62,0x54,0xfc,0x18,0x69,0x8c,0x80,0x23,0x01,0x00,0x00,0x40,0xe2,0x01,0x00