llvm/llvm/test/MC/X86/apx/idiv-intel.s

# RUN: llvm-mc -triple x86_64 -show-encoding -x86-asm-syntax=intel -output-asm-variant=1 %s | FileCheck %s

# CHECK: {evex}	idiv	bl
# CHECK: encoding: [0x62,0xf4,0x7c,0x08,0xf6,0xfb]
         {evex}	idiv	bl
# CHECK: {nf}	idiv	bl
# CHECK: encoding: [0x62,0xf4,0x7c,0x0c,0xf6,0xfb]
         {nf}	idiv	bl
# CHECK: {evex}	idiv	dx
# CHECK: encoding: [0x62,0xf4,0x7d,0x08,0xf7,0xfa]
         {evex}	idiv	dx
# CHECK: {nf}	idiv	dx
# CHECK: encoding: [0x62,0xf4,0x7d,0x0c,0xf7,0xfa]
         {nf}	idiv	dx
# CHECK: {evex}	idiv	ecx
# CHECK: encoding: [0x62,0xf4,0x7c,0x08,0xf7,0xf9]
         {evex}	idiv	ecx
# CHECK: {nf}	idiv	ecx
# CHECK: encoding: [0x62,0xf4,0x7c,0x0c,0xf7,0xf9]
         {nf}	idiv	ecx
# CHECK: {evex}	idiv	r9
# CHECK: encoding: [0x62,0xd4,0xfc,0x08,0xf7,0xf9]
         {evex}	idiv	r9
# CHECK: {nf}	idiv	r9
# CHECK: encoding: [0x62,0xd4,0xfc,0x0c,0xf7,0xf9]
         {nf}	idiv	r9
# CHECK: {evex}	idiv	byte ptr [r8 + 4*rax + 291]
# CHECK: encoding: [0x62,0xd4,0x7c,0x08,0xf6,0xbc,0x80,0x23,0x01,0x00,0x00]
         {evex}	idiv	byte ptr [r8 + 4*rax + 291]
# CHECK: {nf}	idiv	byte ptr [r8 + 4*rax + 291]
# CHECK: encoding: [0x62,0xd4,0x7c,0x0c,0xf6,0xbc,0x80,0x23,0x01,0x00,0x00]
         {nf}	idiv	byte ptr [r8 + 4*rax + 291]
# CHECK: {evex}	idiv	word ptr [r8 + 4*rax + 291]
# CHECK: encoding: [0x62,0xd4,0x7d,0x08,0xf7,0xbc,0x80,0x23,0x01,0x00,0x00]
         {evex}	idiv	word ptr [r8 + 4*rax + 291]
# CHECK: {nf}	idiv	word ptr [r8 + 4*rax + 291]
# CHECK: encoding: [0x62,0xd4,0x7d,0x0c,0xf7,0xbc,0x80,0x23,0x01,0x00,0x00]
         {nf}	idiv	word ptr [r8 + 4*rax + 291]
# CHECK: {evex}	idiv	dword ptr [r8 + 4*rax + 291]
# CHECK: encoding: [0x62,0xd4,0x7c,0x08,0xf7,0xbc,0x80,0x23,0x01,0x00,0x00]
         {evex}	idiv	dword ptr [r8 + 4*rax + 291]
# CHECK: {nf}	idiv	dword ptr [r8 + 4*rax + 291]
# CHECK: encoding: [0x62,0xd4,0x7c,0x0c,0xf7,0xbc,0x80,0x23,0x01,0x00,0x00]
         {nf}	idiv	dword ptr [r8 + 4*rax + 291]
# CHECK: {evex}	idiv	qword ptr [r8 + 4*rax + 291]
# CHECK: encoding: [0x62,0xd4,0xfc,0x08,0xf7,0xbc,0x80,0x23,0x01,0x00,0x00]
         {evex}	idiv	qword ptr [r8 + 4*rax + 291]
# CHECK: {nf}	idiv	qword ptr [r8 + 4*rax + 291]
# CHECK: encoding: [0x62,0xd4,0xfc,0x0c,0xf7,0xbc,0x80,0x23,0x01,0x00,0x00]
         {nf}	idiv	qword ptr [r8 + 4*rax + 291]