# 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} orb $123, %bl
# INTEL: {evex} or bl, 123
0x62,0xf4,0x7c,0x08,0x80,0xcb,0x7b
# ATT: {nf} orb $123, %bl
# INTEL: {nf} or bl, 123
0x62,0xf4,0x7c,0x0c,0x80,0xcb,0x7b
# ATT: orb $123, %bl, %cl
# INTEL: or cl, bl, 123
0x62,0xf4,0x74,0x18,0x80,0xcb,0x7b
# ATT: {nf} orb $123, %bl, %cl
# INTEL: {nf} or cl, bl, 123
0x62,0xf4,0x74,0x1c,0x80,0xcb,0x7b
# ATT: {evex} orw $123, %dx
# INTEL: {evex} or dx, 123
0x62,0xf4,0x7d,0x08,0x83,0xca,0x7b
# ATT: {nf} orw $123, %dx
# INTEL: {nf} or dx, 123
0x62,0xf4,0x7d,0x0c,0x83,0xca,0x7b
# ATT: orw $123, %dx, %ax
# INTEL: or ax, dx, 123
0x62,0xf4,0x7d,0x18,0x83,0xca,0x7b
# ATT: {nf} orw $123, %dx, %ax
# INTEL: {nf} or ax, dx, 123
0x62,0xf4,0x7d,0x1c,0x83,0xca,0x7b
# ATT: {evex} orl $123, %ecx
# INTEL: {evex} or ecx, 123
0x62,0xf4,0x7c,0x08,0x83,0xc9,0x7b
# ATT: {nf} orl $123, %ecx
# INTEL: {nf} or ecx, 123
0x62,0xf4,0x7c,0x0c,0x83,0xc9,0x7b
# ATT: orl $123, %ecx, %edx
# INTEL: or edx, ecx, 123
0x62,0xf4,0x6c,0x18,0x83,0xc9,0x7b
# ATT: {nf} orl $123, %ecx, %edx
# INTEL: {nf} or edx, ecx, 123
0x62,0xf4,0x6c,0x1c,0x83,0xc9,0x7b
# ATT: {evex} orq $123, %r9
# INTEL: {evex} or r9, 123
0x62,0xd4,0xfc,0x08,0x83,0xc9,0x7b
# ATT: {nf} orq $123, %r9
# INTEL: {nf} or r9, 123
0x62,0xd4,0xfc,0x0c,0x83,0xc9,0x7b
# ATT: orq $123, %r9, %r15
# INTEL: or r15, r9, 123
0x62,0xd4,0x84,0x18,0x83,0xc9,0x7b
# ATT: {nf} orq $123, %r9, %r15
# INTEL: {nf} or r15, r9, 123
0x62,0xd4,0x84,0x1c,0x83,0xc9,0x7b
# ATT: {evex} orb $123, 291(%r8,%rax,4)
# INTEL: {evex} or byte ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0x7c,0x08,0x80,0x8c,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: {nf} orb $123, 291(%r8,%rax,4)
# INTEL: {nf} or byte ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0x7c,0x0c,0x80,0x8c,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: orb $123, 291(%r8,%rax,4), %bl
# INTEL: or bl, byte ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0x64,0x18,0x80,0x8c,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: {nf} orb $123, 291(%r8,%rax,4), %bl
# INTEL: {nf} or bl, byte ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0x64,0x1c,0x80,0x8c,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: {evex} orw $123, 291(%r8,%rax,4)
# INTEL: {evex} or word ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0x7d,0x08,0x83,0x8c,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: {nf} orw $123, 291(%r8,%rax,4)
# INTEL: {nf} or word ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0x7d,0x0c,0x83,0x8c,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: orw $123, 291(%r8,%rax,4), %dx
# INTEL: or dx, word ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0x6d,0x18,0x83,0x8c,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: {nf} orw $123, 291(%r8,%rax,4), %dx
# INTEL: {nf} or dx, word ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0x6d,0x1c,0x83,0x8c,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: {evex} orl $123, 291(%r8,%rax,4)
# INTEL: {evex} or dword ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0x7c,0x08,0x83,0x8c,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: {nf} orl $123, 291(%r8,%rax,4)
# INTEL: {nf} or dword ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0x7c,0x0c,0x83,0x8c,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: orl $123, 291(%r8,%rax,4), %ecx
# INTEL: or ecx, dword ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0x74,0x18,0x83,0x8c,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: {nf} orl $123, 291(%r8,%rax,4), %ecx
# INTEL: {nf} or ecx, dword ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0x74,0x1c,0x83,0x8c,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: {evex} orq $123, 291(%r8,%rax,4)
# INTEL: {evex} or qword ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0xfc,0x08,0x83,0x8c,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: {nf} orq $123, 291(%r8,%rax,4)
# INTEL: {nf} or qword ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0xfc,0x0c,0x83,0x8c,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: orq $123, 291(%r8,%rax,4), %r9
# INTEL: or r9, qword ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0xb4,0x18,0x83,0x8c,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: {nf} orq $123, 291(%r8,%rax,4), %r9
# INTEL: {nf} or r9, qword ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0xb4,0x1c,0x83,0x8c,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: {evex} orw $1234, %dx
# INTEL: {evex} or dx, 1234
0x62,0xf4,0x7d,0x08,0x81,0xca,0xd2,0x04
# ATT: {nf} orw $1234, %dx
# INTEL: {nf} or dx, 1234
0x62,0xf4,0x7d,0x0c,0x81,0xca,0xd2,0x04
# ATT: orw $1234, %dx, %ax
# INTEL: or ax, dx, 1234
0x62,0xf4,0x7d,0x18,0x81,0xca,0xd2,0x04
# ATT: {nf} orw $1234, %dx, %ax
# INTEL: {nf} or ax, dx, 1234
0x62,0xf4,0x7d,0x1c,0x81,0xca,0xd2,0x04
# ATT: {evex} orw $1234, 291(%r8,%rax,4)
# INTEL: {evex} or word ptr [r8 + 4*rax + 291], 1234
0x62,0xd4,0x7d,0x08,0x81,0x8c,0x80,0x23,0x01,0x00,0x00,0xd2,0x04
# ATT: {nf} orw $1234, 291(%r8,%rax,4)
# INTEL: {nf} or word ptr [r8 + 4*rax + 291], 1234
0x62,0xd4,0x7d,0x0c,0x81,0x8c,0x80,0x23,0x01,0x00,0x00,0xd2,0x04
# ATT: orw $1234, 291(%r8,%rax,4), %dx
# INTEL: or dx, word ptr [r8 + 4*rax + 291], 1234
0x62,0xd4,0x6d,0x18,0x81,0x8c,0x80,0x23,0x01,0x00,0x00,0xd2,0x04
# ATT: {nf} orw $1234, 291(%r8,%rax,4), %dx
# INTEL: {nf} or dx, word ptr [r8 + 4*rax + 291], 1234
0x62,0xd4,0x6d,0x1c,0x81,0x8c,0x80,0x23,0x01,0x00,0x00,0xd2,0x04
# ATT: {evex} orl $123456, %ecx
# INTEL: {evex} or ecx, 123456
0x62,0xf4,0x7c,0x08,0x81,0xc9,0x40,0xe2,0x01,0x00
# ATT: {nf} orl $123456, %ecx
# INTEL: {nf} or ecx, 123456
0x62,0xf4,0x7c,0x0c,0x81,0xc9,0x40,0xe2,0x01,0x00
# ATT: orl $123456, %ecx, %edx
# INTEL: or edx, ecx, 123456
0x62,0xf4,0x6c,0x18,0x81,0xc9,0x40,0xe2,0x01,0x00
# ATT: {nf} orl $123456, %ecx, %edx
# INTEL: {nf} or edx, ecx, 123456
0x62,0xf4,0x6c,0x1c,0x81,0xc9,0x40,0xe2,0x01,0x00
# ATT: {evex} orq $123456, %r9
# INTEL: {evex} or r9, 123456
0x62,0xd4,0xfc,0x08,0x81,0xc9,0x40,0xe2,0x01,0x00
# ATT: {nf} orq $123456, %r9
# INTEL: {nf} or r9, 123456
0x62,0xd4,0xfc,0x0c,0x81,0xc9,0x40,0xe2,0x01,0x00
# ATT: orq $123456, %r9, %r15
# INTEL: or r15, r9, 123456
0x62,0xd4,0x84,0x18,0x81,0xc9,0x40,0xe2,0x01,0x00
# ATT: {nf} orq $123456, %r9, %r15
# INTEL: {nf} or r15, r9, 123456
0x62,0xd4,0x84,0x1c,0x81,0xc9,0x40,0xe2,0x01,0x00
# ATT: {evex} orl $123456, 291(%r8,%rax,4)
# INTEL: {evex} or dword ptr [r8 + 4*rax + 291], 123456
0x62,0xd4,0x7c,0x08,0x81,0x8c,0x80,0x23,0x01,0x00,0x00,0x40,0xe2,0x01,0x00
# ATT: {nf} orl $123456, 291(%r8,%rax,4)
# INTEL: {nf} or dword ptr [r8 + 4*rax + 291], 123456
0x62,0xd4,0x7c,0x0c,0x81,0x8c,0x80,0x23,0x01,0x00,0x00,0x40,0xe2,0x01,0x00
# ATT: orl $123456, 291(%r8,%rax,4), %ecx
# INTEL: or ecx, dword ptr [r8 + 4*rax + 291], 123456
0x62,0xd4,0x74,0x18,0x81,0x8c,0x80,0x23,0x01,0x00,0x00,0x40,0xe2,0x01,0x00
# ATT: {nf} orl $123456, 291(%r8,%rax,4), %ecx
# INTEL: {nf} or ecx, dword ptr [r8 + 4*rax + 291], 123456
0x62,0xd4,0x74,0x1c,0x81,0x8c,0x80,0x23,0x01,0x00,0x00,0x40,0xe2,0x01,0x00
# ATT: {evex} orq $123456, 291(%r8,%rax,4)
# INTEL: {evex} or qword ptr [r8 + 4*rax + 291], 123456
0x62,0xd4,0xfc,0x08,0x81,0x8c,0x80,0x23,0x01,0x00,0x00,0x40,0xe2,0x01,0x00
# ATT: {nf} orq $123456, 291(%r8,%rax,4)
# INTEL: {nf} or qword ptr [r8 + 4*rax + 291], 123456
0x62,0xd4,0xfc,0x0c,0x81,0x8c,0x80,0x23,0x01,0x00,0x00,0x40,0xe2,0x01,0x00
# ATT: orq $123456, 291(%r8,%rax,4), %r9
# INTEL: or r9, qword ptr [r8 + 4*rax + 291], 123456
0x62,0xd4,0xb4,0x18,0x81,0x8c,0x80,0x23,0x01,0x00,0x00,0x40,0xe2,0x01,0x00
# ATT: {nf} orq $123456, 291(%r8,%rax,4), %r9
# INTEL: {nf} or r9, qword ptr [r8 + 4*rax + 291], 123456
0x62,0xd4,0xb4,0x1c,0x81,0x8c,0x80,0x23,0x01,0x00,0x00,0x40,0xe2,0x01,0x00
# ATT: {evex} orb %bl, %cl
# INTEL: {evex} or cl, bl
0x62,0xf4,0x7c,0x08,0x08,0xd9
# ATT: {nf} orb %bl, %cl
# INTEL: {nf} or cl, bl
0x62,0xf4,0x7c,0x0c,0x08,0xd9
# ATT: orb %bl, %cl, %r8b
# INTEL: or r8b, cl, bl
0x62,0xf4,0x3c,0x18,0x08,0xd9
# ATT: {nf} orb %bl, %cl, %r8b
# INTEL: {nf} or r8b, cl, bl
0x62,0xf4,0x3c,0x1c,0x08,0xd9
# ATT: {evex} orb %bl, 291(%r8,%rax,4)
# INTEL: {evex} or byte ptr [r8 + 4*rax + 291], bl
0x62,0xd4,0x7c,0x08,0x08,0x9c,0x80,0x23,0x01,0x00,0x00
# ATT: {nf} orb %bl, 291(%r8,%rax,4)
# INTEL: {nf} or byte ptr [r8 + 4*rax + 291], bl
0x62,0xd4,0x7c,0x0c,0x08,0x9c,0x80,0x23,0x01,0x00,0x00
# ATT: orb %bl, 291(%r8,%rax,4), %cl
# INTEL: or cl, byte ptr [r8 + 4*rax + 291], bl
0x62,0xd4,0x74,0x18,0x08,0x9c,0x80,0x23,0x01,0x00,0x00
# ATT: {nf} orb %bl, 291(%r8,%rax,4), %cl
# INTEL: {nf} or cl, byte ptr [r8 + 4*rax + 291], bl
0x62,0xd4,0x74,0x1c,0x08,0x9c,0x80,0x23,0x01,0x00,0x00
# ATT: {evex} orw %dx, %ax
# INTEL: {evex} or ax, dx
0x62,0xf4,0x7d,0x08,0x09,0xd0
# ATT: {nf} orw %dx, %ax
# INTEL: {nf} or ax, dx
0x62,0xf4,0x7d,0x0c,0x09,0xd0
# ATT: orw %dx, %ax, %r9w
# INTEL: or r9w, ax, dx
0x62,0xf4,0x35,0x18,0x09,0xd0
# ATT: {nf} orw %dx, %ax, %r9w
# INTEL: {nf} or r9w, ax, dx
0x62,0xf4,0x35,0x1c,0x09,0xd0
# ATT: {evex} orw %dx, 291(%r8,%rax,4)
# INTEL: {evex} or word ptr [r8 + 4*rax + 291], dx
0x62,0xd4,0x7d,0x08,0x09,0x94,0x80,0x23,0x01,0x00,0x00
# ATT: {nf} orw %dx, 291(%r8,%rax,4)
# INTEL: {nf} or word ptr [r8 + 4*rax + 291], dx
0x62,0xd4,0x7d,0x0c,0x09,0x94,0x80,0x23,0x01,0x00,0x00
# ATT: orw %dx, 291(%r8,%rax,4), %ax
# INTEL: or ax, word ptr [r8 + 4*rax + 291], dx
0x62,0xd4,0x7d,0x18,0x09,0x94,0x80,0x23,0x01,0x00,0x00
# ATT: {nf} orw %dx, 291(%r8,%rax,4), %ax
# INTEL: {nf} or ax, word ptr [r8 + 4*rax + 291], dx
0x62,0xd4,0x7d,0x1c,0x09,0x94,0x80,0x23,0x01,0x00,0x00
# ATT: {evex} orl %ecx, %edx
# INTEL: {evex} or edx, ecx
0x62,0xf4,0x7c,0x08,0x09,0xca
# ATT: {nf} orl %ecx, %edx
# INTEL: {nf} or edx, ecx
0x62,0xf4,0x7c,0x0c,0x09,0xca
# ATT: orl %ecx, %edx, %r10d
# INTEL: or r10d, edx, ecx
0x62,0xf4,0x2c,0x18,0x09,0xca
# ATT: {nf} orl %ecx, %edx, %r10d
# INTEL: {nf} or r10d, edx, ecx
0x62,0xf4,0x2c,0x1c,0x09,0xca
# ATT: {evex} orl %ecx, 291(%r8,%rax,4)
# INTEL: {evex} or dword ptr [r8 + 4*rax + 291], ecx
0x62,0xd4,0x7c,0x08,0x09,0x8c,0x80,0x23,0x01,0x00,0x00
# ATT: {nf} orl %ecx, 291(%r8,%rax,4)
# INTEL: {nf} or dword ptr [r8 + 4*rax + 291], ecx
0x62,0xd4,0x7c,0x0c,0x09,0x8c,0x80,0x23,0x01,0x00,0x00
# ATT: orl %ecx, 291(%r8,%rax,4), %edx
# INTEL: or edx, dword ptr [r8 + 4*rax + 291], ecx
0x62,0xd4,0x6c,0x18,0x09,0x8c,0x80,0x23,0x01,0x00,0x00
# ATT: {nf} orl %ecx, 291(%r8,%rax,4), %edx
# INTEL: {nf} or edx, dword ptr [r8 + 4*rax + 291], ecx
0x62,0xd4,0x6c,0x1c,0x09,0x8c,0x80,0x23,0x01,0x00,0x00
# ATT: {evex} orq %r9, %r15
# INTEL: {evex} or r15, r9
0x62,0x54,0xfc,0x08,0x09,0xcf
# ATT: {nf} orq %r9, %r15
# INTEL: {nf} or r15, r9
0x62,0x54,0xfc,0x0c,0x09,0xcf
# ATT: orq %r9, %r15, %r11
# INTEL: or r11, r15, r9
0x62,0x54,0xa4,0x18,0x09,0xcf
# ATT: {nf} orq %r9, %r15, %r11
# INTEL: {nf} or r11, r15, r9
0x62,0x54,0xa4,0x1c,0x09,0xcf
# ATT: {evex} orq %r9, 291(%r8,%rax,4)
# INTEL: {evex} or qword ptr [r8 + 4*rax + 291], r9
0x62,0x54,0xfc,0x08,0x09,0x8c,0x80,0x23,0x01,0x00,0x00
# ATT: {nf} orq %r9, 291(%r8,%rax,4)
# INTEL: {nf} or qword ptr [r8 + 4*rax + 291], r9
0x62,0x54,0xfc,0x0c,0x09,0x8c,0x80,0x23,0x01,0x00,0x00
# ATT: orq %r9, 291(%r8,%rax,4), %r15
# INTEL: or r15, qword ptr [r8 + 4*rax + 291], r9
0x62,0x54,0x84,0x18,0x09,0x8c,0x80,0x23,0x01,0x00,0x00
# ATT: {nf} orq %r9, 291(%r8,%rax,4), %r15
# INTEL: {nf} or r15, qword ptr [r8 + 4*rax + 291], r9
0x62,0x54,0x84,0x1c,0x09,0x8c,0x80,0x23,0x01,0x00,0x00
# ATT: {evex} orb 291(%r8,%rax,4), %bl
# INTEL: {evex} or bl, byte ptr [r8 + 4*rax + 291]
0x62,0xd4,0x7c,0x08,0x0a,0x9c,0x80,0x23,0x01,0x00,0x00
# ATT: {nf} orb 291(%r8,%rax,4), %bl
# INTEL: {nf} or bl, byte ptr [r8 + 4*rax + 291]
0x62,0xd4,0x7c,0x0c,0x0a,0x9c,0x80,0x23,0x01,0x00,0x00
# ATT: orb 291(%r8,%rax,4), %bl, %cl
# INTEL: or cl, bl, byte ptr [r8 + 4*rax + 291]
0x62,0xd4,0x74,0x18,0x0a,0x9c,0x80,0x23,0x01,0x00,0x00
# ATT: {nf} orb 291(%r8,%rax,4), %bl, %cl
# INTEL: {nf} or cl, bl, byte ptr [r8 + 4*rax + 291]
0x62,0xd4,0x74,0x1c,0x0a,0x9c,0x80,0x23,0x01,0x00,0x00
# ATT: {evex} orw 291(%r8,%rax,4), %dx
# INTEL: {evex} or dx, word ptr [r8 + 4*rax + 291]
0x62,0xd4,0x7d,0x08,0x0b,0x94,0x80,0x23,0x01,0x00,0x00
# ATT: {nf} orw 291(%r8,%rax,4), %dx
# INTEL: {nf} or dx, word ptr [r8 + 4*rax + 291]
0x62,0xd4,0x7d,0x0c,0x0b,0x94,0x80,0x23,0x01,0x00,0x00
# ATT: orw 291(%r8,%rax,4), %dx, %ax
# INTEL: or ax, dx, word ptr [r8 + 4*rax + 291]
0x62,0xd4,0x7d,0x18,0x0b,0x94,0x80,0x23,0x01,0x00,0x00
# ATT: {nf} orw 291(%r8,%rax,4), %dx, %ax
# INTEL: {nf} or ax, dx, word ptr [r8 + 4*rax + 291]
0x62,0xd4,0x7d,0x1c,0x0b,0x94,0x80,0x23,0x01,0x00,0x00
# ATT: {evex} orl 291(%r8,%rax,4), %ecx
# INTEL: {evex} or ecx, dword ptr [r8 + 4*rax + 291]
0x62,0xd4,0x7c,0x08,0x0b,0x8c,0x80,0x23,0x01,0x00,0x00
# ATT: {nf} orl 291(%r8,%rax,4), %ecx
# INTEL: {nf} or ecx, dword ptr [r8 + 4*rax + 291]
0x62,0xd4,0x7c,0x0c,0x0b,0x8c,0x80,0x23,0x01,0x00,0x00
# ATT: orl 291(%r8,%rax,4), %ecx, %edx
# INTEL: or edx, ecx, dword ptr [r8 + 4*rax + 291]
0x62,0xd4,0x6c,0x18,0x0b,0x8c,0x80,0x23,0x01,0x00,0x00
# ATT: {nf} orl 291(%r8,%rax,4), %ecx, %edx
# INTEL: {nf} or edx, ecx, dword ptr [r8 + 4*rax + 291]
0x62,0xd4,0x6c,0x1c,0x0b,0x8c,0x80,0x23,0x01,0x00,0x00
# ATT: {evex} orq 291(%r8,%rax,4), %r9
# INTEL: {evex} or r9, qword ptr [r8 + 4*rax + 291]
0x62,0x54,0xfc,0x08,0x0b,0x8c,0x80,0x23,0x01,0x00,0x00
# ATT: {nf} orq 291(%r8,%rax,4), %r9
# INTEL: {nf} or r9, qword ptr [r8 + 4*rax + 291]
0x62,0x54,0xfc,0x0c,0x0b,0x8c,0x80,0x23,0x01,0x00,0x00
# ATT: orq 291(%r8,%rax,4), %r9, %r15
# INTEL: or r15, r9, qword ptr [r8 + 4*rax + 291]
0x62,0x54,0x84,0x18,0x0b,0x8c,0x80,0x23,0x01,0x00,0x00
# ATT: {nf} orq 291(%r8,%rax,4), %r9, %r15
# INTEL: {nf} or r15, r9, qword ptr [r8 + 4*rax + 291]
0x62,0x54,0x84,0x1c,0x0b,0x8c,0x80,0x23,0x01,0x00,0x00