# 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} divb %bl # INTEL: {evex} div bl 0x62,0xf4,0x7c,0x08,0xf6,0xf3 # ATT: {nf} divb %bl # INTEL: {nf} div bl 0x62,0xf4,0x7c,0x0c,0xf6,0xf3 # ATT: {evex} divw %dx # INTEL: {evex} div dx 0x62,0xf4,0x7d,0x08,0xf7,0xf2 # ATT: {nf} divw %dx # INTEL: {nf} div dx 0x62,0xf4,0x7d,0x0c,0xf7,0xf2 # ATT: {evex} divl %ecx # INTEL: {evex} div ecx 0x62,0xf4,0x7c,0x08,0xf7,0xf1 # ATT: {nf} divl %ecx # INTEL: {nf} div ecx 0x62,0xf4,0x7c,0x0c,0xf7,0xf1 # ATT: {evex} divq %r9 # INTEL: {evex} div r9 0x62,0xd4,0xfc,0x08,0xf7,0xf1 # ATT: {nf} divq %r9 # INTEL: {nf} div r9 0x62,0xd4,0xfc,0x0c,0xf7,0xf1 # ATT: {evex} divb 291(%r8,%rax,4) # INTEL: {evex} div byte ptr [r8 + 4*rax + 291] 0x62,0xd4,0x7c,0x08,0xf6,0xb4,0x80,0x23,0x01,0x00,0x00 # ATT: {nf} divb 291(%r8,%rax,4) # INTEL: {nf} div byte ptr [r8 + 4*rax + 291] 0x62,0xd4,0x7c,0x0c,0xf6,0xb4,0x80,0x23,0x01,0x00,0x00 # ATT: {evex} divw 291(%r8,%rax,4) # INTEL: {evex} div word ptr [r8 + 4*rax + 291] 0x62,0xd4,0x7d,0x08,0xf7,0xb4,0x80,0x23,0x01,0x00,0x00 # ATT: {nf} divw 291(%r8,%rax,4) # INTEL: {nf} div word ptr [r8 + 4*rax + 291] 0x62,0xd4,0x7d,0x0c,0xf7,0xb4,0x80,0x23,0x01,0x00,0x00 # ATT: {evex} divl 291(%r8,%rax,4) # INTEL: {evex} div dword ptr [r8 + 4*rax + 291] 0x62,0xd4,0x7c,0x08,0xf7,0xb4,0x80,0x23,0x01,0x00,0x00 # ATT: {nf} divl 291(%r8,%rax,4) # INTEL: {nf} div dword ptr [r8 + 4*rax + 291] 0x62,0xd4,0x7c,0x0c,0xf7,0xb4,0x80,0x23,0x01,0x00,0x00 # ATT: {evex} divq 291(%r8,%rax,4) # INTEL: {evex} div qword ptr [r8 + 4*rax + 291] 0x62,0xd4,0xfc,0x08,0xf7,0xb4,0x80,0x23,0x01,0x00,0x00 # ATT: {nf} divq 291(%r8,%rax,4) # INTEL: {nf} div qword ptr [r8 + 4*rax + 291] 0x62,0xd4,0xfc,0x0c,0xf7,0xb4,0x80,0x23,0x01,0x00,0x00