# 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} adcb $123, %bl
# INTEL: {evex} adc bl, 123
0x62,0xf4,0x7c,0x08,0x80,0xd3,0x7b
# ATT: adcb $123, %bl, %cl
# INTEL: adc cl, bl, 123
0x62,0xf4,0x74,0x18,0x80,0xd3,0x7b
# ATT: {evex} adcw $123, %dx
# INTEL: {evex} adc dx, 123
0x62,0xf4,0x7d,0x08,0x83,0xd2,0x7b
# ATT: adcw $123, %dx, %ax
# INTEL: adc ax, dx, 123
0x62,0xf4,0x7d,0x18,0x83,0xd2,0x7b
# ATT: {evex} adcl $123, %ecx
# INTEL: {evex} adc ecx, 123
0x62,0xf4,0x7c,0x08,0x83,0xd1,0x7b
# ATT: adcl $123, %ecx, %edx
# INTEL: adc edx, ecx, 123
0x62,0xf4,0x6c,0x18,0x83,0xd1,0x7b
# ATT: {evex} adcq $123, %r9
# INTEL: {evex} adc r9, 123
0x62,0xd4,0xfc,0x08,0x83,0xd1,0x7b
# ATT: adcq $123, %r9, %r15
# INTEL: adc r15, r9, 123
0x62,0xd4,0x84,0x18,0x83,0xd1,0x7b
# ATT: {evex} adcb $123, 291(%r8,%rax,4)
# INTEL: {evex} adc byte ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0x7c,0x08,0x80,0x94,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: adcb $123, 291(%r8,%rax,4), %bl
# INTEL: adc bl, byte ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0x64,0x18,0x80,0x94,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: {evex} adcw $123, 291(%r8,%rax,4)
# INTEL: {evex} adc word ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0x7d,0x08,0x83,0x94,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: adcw $123, 291(%r8,%rax,4), %dx
# INTEL: adc dx, word ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0x6d,0x18,0x83,0x94,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: {evex} adcl $123, 291(%r8,%rax,4)
# INTEL: {evex} adc dword ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0x7c,0x08,0x83,0x94,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: adcl $123, 291(%r8,%rax,4), %ecx
# INTEL: adc ecx, dword ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0x74,0x18,0x83,0x94,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: {evex} adcq $123, 291(%r8,%rax,4)
# INTEL: {evex} adc qword ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0xfc,0x08,0x83,0x94,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: adcq $123, 291(%r8,%rax,4), %r9
# INTEL: adc r9, qword ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0xb4,0x18,0x83,0x94,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: {evex} adcw $1234, %dx
# INTEL: {evex} adc dx, 1234
0x62,0xf4,0x7d,0x08,0x81,0xd2,0xd2,0x04
# ATT: adcw $1234, %dx, %ax
# INTEL: adc ax, dx, 1234
0x62,0xf4,0x7d,0x18,0x81,0xd2,0xd2,0x04
# ATT: {evex} adcw $1234, 291(%r8,%rax,4)
# INTEL: {evex} adc word ptr [r8 + 4*rax + 291], 1234
0x62,0xd4,0x7d,0x08,0x81,0x94,0x80,0x23,0x01,0x00,0x00,0xd2,0x04
# ATT: adcw $1234, 291(%r8,%rax,4), %dx
# INTEL: adc dx, word ptr [r8 + 4*rax + 291], 1234
0x62,0xd4,0x6d,0x18,0x81,0x94,0x80,0x23,0x01,0x00,0x00,0xd2,0x04
# ATT: {evex} adcl $123456, %ecx
# INTEL: {evex} adc ecx, 123456
0x62,0xf4,0x7c,0x08,0x81,0xd1,0x40,0xe2,0x01,0x00
# ATT: adcl $123456, %ecx, %edx
# INTEL: adc edx, ecx, 123456
0x62,0xf4,0x6c,0x18,0x81,0xd1,0x40,0xe2,0x01,0x00
# ATT: {evex} adcq $123456, %r9
# INTEL: {evex} adc r9, 123456
0x62,0xd4,0xfc,0x08,0x81,0xd1,0x40,0xe2,0x01,0x00
# ATT: adcq $123456, %r9, %r15
# INTEL: adc r15, r9, 123456
0x62,0xd4,0x84,0x18,0x81,0xd1,0x40,0xe2,0x01,0x00
# ATT: {evex} adcl $123456, 291(%r8,%rax,4)
# INTEL: {evex} adc dword ptr [r8 + 4*rax + 291], 123456
0x62,0xd4,0x7c,0x08,0x81,0x94,0x80,0x23,0x01,0x00,0x00,0x40,0xe2,0x01,0x00
# ATT: adcl $123456, 291(%r8,%rax,4), %ecx
# INTEL: adc ecx, dword ptr [r8 + 4*rax + 291], 123456
0x62,0xd4,0x74,0x18,0x81,0x94,0x80,0x23,0x01,0x00,0x00,0x40,0xe2,0x01,0x00
# ATT: {evex} adcq $123456, 291(%r8,%rax,4)
# INTEL: {evex} adc qword ptr [r8 + 4*rax + 291], 123456
0x62,0xd4,0xfc,0x08,0x81,0x94,0x80,0x23,0x01,0x00,0x00,0x40,0xe2,0x01,0x00
# ATT: adcq $123456, 291(%r8,%rax,4), %r9
# INTEL: adc r9, qword ptr [r8 + 4*rax + 291], 123456
0x62,0xd4,0xb4,0x18,0x81,0x94,0x80,0x23,0x01,0x00,0x00,0x40,0xe2,0x01,0x00
# ATT: {evex} adcb %bl, %cl
# INTEL: {evex} adc cl, bl
0x62,0xf4,0x7c,0x08,0x10,0xd9
# ATT: adcb %bl, %cl, %r8b
# INTEL: adc r8b, cl, bl
0x62,0xf4,0x3c,0x18,0x10,0xd9
# ATT: {evex} adcb %bl, 291(%r8,%rax,4)
# INTEL: {evex} adc byte ptr [r8 + 4*rax + 291], bl
0x62,0xd4,0x7c,0x08,0x10,0x9c,0x80,0x23,0x01,0x00,0x00
# ATT: adcb %bl, 291(%r8,%rax,4), %cl
# INTEL: adc cl, byte ptr [r8 + 4*rax + 291], bl
0x62,0xd4,0x74,0x18,0x10,0x9c,0x80,0x23,0x01,0x00,0x00
# ATT: {evex} adcw %dx, %ax
# INTEL: {evex} adc ax, dx
0x62,0xf4,0x7d,0x08,0x11,0xd0
# ATT: adcw %dx, %ax, %r9w
# INTEL: adc r9w, ax, dx
0x62,0xf4,0x35,0x18,0x11,0xd0
# ATT: {evex} adcw %dx, 291(%r8,%rax,4)
# INTEL: {evex} adc word ptr [r8 + 4*rax + 291], dx
0x62,0xd4,0x7d,0x08,0x11,0x94,0x80,0x23,0x01,0x00,0x00
# ATT: adcw %dx, 291(%r8,%rax,4), %ax
# INTEL: adc ax, word ptr [r8 + 4*rax + 291], dx
0x62,0xd4,0x7d,0x18,0x11,0x94,0x80,0x23,0x01,0x00,0x00
# ATT: {evex} adcl %ecx, %edx
# INTEL: {evex} adc edx, ecx
0x62,0xf4,0x7c,0x08,0x11,0xca
# ATT: adcl %ecx, %edx, %r10d
# INTEL: adc r10d, edx, ecx
0x62,0xf4,0x2c,0x18,0x11,0xca
# ATT: {evex} adcl %ecx, 291(%r8,%rax,4)
# INTEL: {evex} adc dword ptr [r8 + 4*rax + 291], ecx
0x62,0xd4,0x7c,0x08,0x11,0x8c,0x80,0x23,0x01,0x00,0x00
# ATT: adcl %ecx, 291(%r8,%rax,4), %edx
# INTEL: adc edx, dword ptr [r8 + 4*rax + 291], ecx
0x62,0xd4,0x6c,0x18,0x11,0x8c,0x80,0x23,0x01,0x00,0x00
# ATT: {evex} adcq %r9, %r15
# INTEL: {evex} adc r15, r9
0x62,0x54,0xfc,0x08,0x11,0xcf
# ATT: adcq %r9, %r15, %r11
# INTEL: adc r11, r15, r9
0x62,0x54,0xa4,0x18,0x11,0xcf
# ATT: {evex} adcq %r9, 291(%r8,%rax,4)
# INTEL: {evex} adc qword ptr [r8 + 4*rax + 291], r9
0x62,0x54,0xfc,0x08,0x11,0x8c,0x80,0x23,0x01,0x00,0x00
# ATT: adcq %r9, 291(%r8,%rax,4), %r15
# INTEL: adc r15, qword ptr [r8 + 4*rax + 291], r9
0x62,0x54,0x84,0x18,0x11,0x8c,0x80,0x23,0x01,0x00,0x00
# ATT: {evex} adcb 291(%r8,%rax,4), %bl
# INTEL: {evex} adc bl, byte ptr [r8 + 4*rax + 291]
0x62,0xd4,0x7c,0x08,0x12,0x9c,0x80,0x23,0x01,0x00,0x00
# ATT: adcb 291(%r8,%rax,4), %bl, %cl
# INTEL: adc cl, bl, byte ptr [r8 + 4*rax + 291]
0x62,0xd4,0x74,0x18,0x12,0x9c,0x80,0x23,0x01,0x00,0x00
# ATT: {evex} adcw 291(%r8,%rax,4), %dx
# INTEL: {evex} adc dx, word ptr [r8 + 4*rax + 291]
0x62,0xd4,0x7d,0x08,0x13,0x94,0x80,0x23,0x01,0x00,0x00
# ATT: adcw 291(%r8,%rax,4), %dx, %ax
# INTEL: adc ax, dx, word ptr [r8 + 4*rax + 291]
0x62,0xd4,0x7d,0x18,0x13,0x94,0x80,0x23,0x01,0x00,0x00
# ATT: {evex} adcl 291(%r8,%rax,4), %ecx
# INTEL: {evex} adc ecx, dword ptr [r8 + 4*rax + 291]
0x62,0xd4,0x7c,0x08,0x13,0x8c,0x80,0x23,0x01,0x00,0x00
# ATT: adcl 291(%r8,%rax,4), %ecx, %edx
# INTEL: adc edx, ecx, dword ptr [r8 + 4*rax + 291]
0x62,0xd4,0x6c,0x18,0x13,0x8c,0x80,0x23,0x01,0x00,0x00
# ATT: {evex} adcq 291(%r8,%rax,4), %r9
# INTEL: {evex} adc r9, qword ptr [r8 + 4*rax + 291]
0x62,0x54,0xfc,0x08,0x13,0x8c,0x80,0x23,0x01,0x00,0x00
# ATT: adcq 291(%r8,%rax,4), %r9, %r15
# INTEL: adc r15, r9, qword ptr [r8 + 4*rax + 291]
0x62,0x54,0x84,0x18,0x13,0x8c,0x80,0x23,0x01,0x00,0x00