# 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} negb %bl
# INTEL: {evex} neg bl
0x62,0xf4,0x7c,0x08,0xf6,0xdb
# ATT: {nf} negb %bl
# INTEL: {nf} neg bl
0x62,0xf4,0x7c,0x0c,0xf6,0xdb
# ATT: negb %bl, %bl
# INTEL: neg bl, bl
0x62,0xf4,0x64,0x18,0xf6,0xdb
# ATT: {nf} negb %bl, %bl
# INTEL: {nf} neg bl, bl
0x62,0xf4,0x64,0x1c,0xf6,0xdb
# ATT: {evex} negw %dx
# INTEL: {evex} neg dx
0x62,0xf4,0x7d,0x08,0xf7,0xda
# ATT: {nf} negw %dx
# INTEL: {nf} neg dx
0x62,0xf4,0x7d,0x0c,0xf7,0xda
# ATT: negw %dx, %dx
# INTEL: neg dx, dx
0x62,0xf4,0x6d,0x18,0xf7,0xda
# ATT: {nf} negw %dx, %dx
# INTEL: {nf} neg dx, dx
0x62,0xf4,0x6d,0x1c,0xf7,0xda
# ATT: {evex} negl %ecx
# INTEL: {evex} neg ecx
0x62,0xf4,0x7c,0x08,0xf7,0xd9
# ATT: {nf} negl %ecx
# INTEL: {nf} neg ecx
0x62,0xf4,0x7c,0x0c,0xf7,0xd9
# ATT: negl %ecx, %ecx
# INTEL: neg ecx, ecx
0x62,0xf4,0x74,0x18,0xf7,0xd9
# ATT: {nf} negl %ecx, %ecx
# INTEL: {nf} neg ecx, ecx
0x62,0xf4,0x74,0x1c,0xf7,0xd9
# ATT: {evex} negq %r9
# INTEL: {evex} neg r9
0x62,0xd4,0xfc,0x08,0xf7,0xd9
# ATT: {nf} negq %r9
# INTEL: {nf} neg r9
0x62,0xd4,0xfc,0x0c,0xf7,0xd9
# ATT: negq %r9, %r9
# INTEL: neg r9, r9
0x62,0xd4,0xb4,0x18,0xf7,0xd9
# ATT: {nf} negq %r9, %r9
# INTEL: {nf} neg r9, r9
0x62,0xd4,0xb4,0x1c,0xf7,0xd9
# ATT: {evex} negb 291(%r8,%rax,4)
# INTEL: {evex} neg byte ptr [r8 + 4*rax + 291]
0x62,0xd4,0x7c,0x08,0xf6,0x9c,0x80,0x23,0x01,0x00,0x00
# ATT: {nf} negb 291(%r8,%rax,4)
# INTEL: {nf} neg byte ptr [r8 + 4*rax + 291]
0x62,0xd4,0x7c,0x0c,0xf6,0x9c,0x80,0x23,0x01,0x00,0x00
# ATT: negb 291(%r8,%rax,4), %bl
# INTEL: neg bl, byte ptr [r8 + 4*rax + 291]
0x62,0xd4,0x64,0x18,0xf6,0x9c,0x80,0x23,0x01,0x00,0x00
# ATT: {nf} negb 291(%r8,%rax,4), %bl
# INTEL: {nf} neg bl, byte ptr [r8 + 4*rax + 291]
0x62,0xd4,0x64,0x1c,0xf6,0x9c,0x80,0x23,0x01,0x00,0x00
# ATT: {evex} negw 291(%r8,%rax,4)
# INTEL: {evex} neg word ptr [r8 + 4*rax + 291]
0x62,0xd4,0x7d,0x08,0xf7,0x9c,0x80,0x23,0x01,0x00,0x00
# ATT: {nf} negw 291(%r8,%rax,4)
# INTEL: {nf} neg word ptr [r8 + 4*rax + 291]
0x62,0xd4,0x7d,0x0c,0xf7,0x9c,0x80,0x23,0x01,0x00,0x00
# ATT: negw 291(%r8,%rax,4), %dx
# INTEL: neg dx, word ptr [r8 + 4*rax + 291]
0x62,0xd4,0x6d,0x18,0xf7,0x9c,0x80,0x23,0x01,0x00,0x00
# ATT: {nf} negw 291(%r8,%rax,4), %dx
# INTEL: {nf} neg dx, word ptr [r8 + 4*rax + 291]
0x62,0xd4,0x6d,0x1c,0xf7,0x9c,0x80,0x23,0x01,0x00,0x00
# ATT: {evex} negl 291(%r8,%rax,4)
# INTEL: {evex} neg dword ptr [r8 + 4*rax + 291]
0x62,0xd4,0x7c,0x08,0xf7,0x9c,0x80,0x23,0x01,0x00,0x00
# ATT: {nf} negl 291(%r8,%rax,4)
# INTEL: {nf} neg dword ptr [r8 + 4*rax + 291]
0x62,0xd4,0x7c,0x0c,0xf7,0x9c,0x80,0x23,0x01,0x00,0x00
# ATT: negl 291(%r8,%rax,4), %ecx
# INTEL: neg ecx, dword ptr [r8 + 4*rax + 291]
0x62,0xd4,0x74,0x18,0xf7,0x9c,0x80,0x23,0x01,0x00,0x00
# ATT: {nf} negl 291(%r8,%rax,4), %ecx
# INTEL: {nf} neg ecx, dword ptr [r8 + 4*rax + 291]
0x62,0xd4,0x74,0x1c,0xf7,0x9c,0x80,0x23,0x01,0x00,0x00
# ATT: {evex} negq 291(%r8,%rax,4)
# INTEL: {evex} neg qword ptr [r8 + 4*rax + 291]
0x62,0xd4,0xfc,0x08,0xf7,0x9c,0x80,0x23,0x01,0x00,0x00
# ATT: {nf} negq 291(%r8,%rax,4)
# INTEL: {nf} neg qword ptr [r8 + 4*rax + 291]
0x62,0xd4,0xfc,0x0c,0xf7,0x9c,0x80,0x23,0x01,0x00,0x00
# ATT: negq 291(%r8,%rax,4), %r9
# INTEL: neg r9, qword ptr [r8 + 4*rax + 291]
0x62,0xd4,0xb4,0x18,0xf7,0x9c,0x80,0x23,0x01,0x00,0x00
# ATT: {nf} negq 291(%r8,%rax,4), %r9
# INTEL: {nf} neg r9, qword ptr [r8 + 4*rax + 291]
0x62,0xd4,0xb4,0x1c,0xf7,0x9c,0x80,0x23,0x01,0x00,0x00