blob: 39697516a8e63215a3fb104bcd9ca2811df71a31 [file] [log] [blame]
# 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} andb $123, %bl
# INTEL: {evex} and bl, 123
0x62,0xf4,0x7c,0x08,0x80,0xe3,0x7b
# ATT: {nf} andb $123, %bl
# INTEL: {nf} and bl, 123
0x62,0xf4,0x7c,0x0c,0x80,0xe3,0x7b
# ATT: andb $123, %bl, %cl
# INTEL: and cl, bl, 123
0x62,0xf4,0x74,0x18,0x80,0xe3,0x7b
# ATT: {nf} andb $123, %bl, %cl
# INTEL: {nf} and cl, bl, 123
0x62,0xf4,0x74,0x1c,0x80,0xe3,0x7b
# ATT: {evex} andw $123, %dx
# INTEL: {evex} and dx, 123
0x62,0xf4,0x7d,0x08,0x83,0xe2,0x7b
# ATT: {nf} andw $123, %dx
# INTEL: {nf} and dx, 123
0x62,0xf4,0x7d,0x0c,0x83,0xe2,0x7b
# ATT: andw $123, %dx, %ax
# INTEL: and ax, dx, 123
0x62,0xf4,0x7d,0x18,0x83,0xe2,0x7b
# ATT: {nf} andw $123, %dx, %ax
# INTEL: {nf} and ax, dx, 123
0x62,0xf4,0x7d,0x1c,0x83,0xe2,0x7b
# ATT: {evex} andl $123, %ecx
# INTEL: {evex} and ecx, 123
0x62,0xf4,0x7c,0x08,0x83,0xe1,0x7b
# ATT: {nf} andl $123, %ecx
# INTEL: {nf} and ecx, 123
0x62,0xf4,0x7c,0x0c,0x83,0xe1,0x7b
# ATT: andl $123, %ecx, %edx
# INTEL: and edx, ecx, 123
0x62,0xf4,0x6c,0x18,0x83,0xe1,0x7b
# ATT: {nf} andl $123, %ecx, %edx
# INTEL: {nf} and edx, ecx, 123
0x62,0xf4,0x6c,0x1c,0x83,0xe1,0x7b
# ATT: {evex} andq $123, %r9
# INTEL: {evex} and r9, 123
0x62,0xd4,0xfc,0x08,0x83,0xe1,0x7b
# ATT: {nf} andq $123, %r9
# INTEL: {nf} and r9, 123
0x62,0xd4,0xfc,0x0c,0x83,0xe1,0x7b
# ATT: andq $123, %r9, %r15
# INTEL: and r15, r9, 123
0x62,0xd4,0x84,0x18,0x83,0xe1,0x7b
# ATT: {nf} andq $123, %r9, %r15
# INTEL: {nf} and r15, r9, 123
0x62,0xd4,0x84,0x1c,0x83,0xe1,0x7b
# ATT: {evex} andb $123, 291(%r8,%rax,4)
# INTEL: {evex} and byte ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0x7c,0x08,0x80,0xa4,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: {nf} andb $123, 291(%r8,%rax,4)
# INTEL: {nf} and byte ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0x7c,0x0c,0x80,0xa4,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: andb $123, 291(%r8,%rax,4), %bl
# INTEL: and bl, byte ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0x64,0x18,0x80,0xa4,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: {nf} andb $123, 291(%r8,%rax,4), %bl
# INTEL: {nf} and bl, byte ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0x64,0x1c,0x80,0xa4,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: {evex} andw $123, 291(%r8,%rax,4)
# INTEL: {evex} and word ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0x7d,0x08,0x83,0xa4,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: {nf} andw $123, 291(%r8,%rax,4)
# INTEL: {nf} and word ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0x7d,0x0c,0x83,0xa4,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: andw $123, 291(%r8,%rax,4), %dx
# INTEL: and dx, word ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0x6d,0x18,0x83,0xa4,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: {nf} andw $123, 291(%r8,%rax,4), %dx
# INTEL: {nf} and dx, word ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0x6d,0x1c,0x83,0xa4,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: {evex} andl $123, 291(%r8,%rax,4)
# INTEL: {evex} and dword ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0x7c,0x08,0x83,0xa4,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: {nf} andl $123, 291(%r8,%rax,4)
# INTEL: {nf} and dword ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0x7c,0x0c,0x83,0xa4,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: andl $123, 291(%r8,%rax,4), %ecx
# INTEL: and ecx, dword ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0x74,0x18,0x83,0xa4,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: {nf} andl $123, 291(%r8,%rax,4), %ecx
# INTEL: {nf} and ecx, dword ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0x74,0x1c,0x83,0xa4,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: {evex} andq $123, 291(%r8,%rax,4)
# INTEL: {evex} and qword ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0xfc,0x08,0x83,0xa4,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: {nf} andq $123, 291(%r8,%rax,4)
# INTEL: {nf} and qword ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0xfc,0x0c,0x83,0xa4,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: andq $123, 291(%r8,%rax,4), %r9
# INTEL: and r9, qword ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0xb4,0x18,0x83,0xa4,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: {nf} andq $123, 291(%r8,%rax,4), %r9
# INTEL: {nf} and r9, qword ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0xb4,0x1c,0x83,0xa4,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: {evex} andw $1234, %dx
# INTEL: {evex} and dx, 1234
0x62,0xf4,0x7d,0x08,0x81,0xe2,0xd2,0x04
# ATT: {nf} andw $1234, %dx
# INTEL: {nf} and dx, 1234
0x62,0xf4,0x7d,0x0c,0x81,0xe2,0xd2,0x04
# ATT: andw $1234, %dx, %ax
# INTEL: and ax, dx, 1234
0x62,0xf4,0x7d,0x18,0x81,0xe2,0xd2,0x04
# ATT: {nf} andw $1234, %dx, %ax
# INTEL: {nf} and ax, dx, 1234
0x62,0xf4,0x7d,0x1c,0x81,0xe2,0xd2,0x04
# ATT: {evex} andw $1234, 291(%r8,%rax,4)
# INTEL: {evex} and word ptr [r8 + 4*rax + 291], 1234
0x62,0xd4,0x7d,0x08,0x81,0xa4,0x80,0x23,0x01,0x00,0x00,0xd2,0x04
# ATT: {nf} andw $1234, 291(%r8,%rax,4)
# INTEL: {nf} and word ptr [r8 + 4*rax + 291], 1234
0x62,0xd4,0x7d,0x0c,0x81,0xa4,0x80,0x23,0x01,0x00,0x00,0xd2,0x04
# ATT: andw $1234, 291(%r8,%rax,4), %dx
# INTEL: and dx, word ptr [r8 + 4*rax + 291], 1234
0x62,0xd4,0x6d,0x18,0x81,0xa4,0x80,0x23,0x01,0x00,0x00,0xd2,0x04
# ATT: {nf} andw $1234, 291(%r8,%rax,4), %dx
# INTEL: {nf} and dx, word ptr [r8 + 4*rax + 291], 1234
0x62,0xd4,0x6d,0x1c,0x81,0xa4,0x80,0x23,0x01,0x00,0x00,0xd2,0x04
# ATT: {evex} andl $123456, %ecx
# INTEL: {evex} and ecx, 123456
0x62,0xf4,0x7c,0x08,0x81,0xe1,0x40,0xe2,0x01,0x00
# ATT: {nf} andl $123456, %ecx
# INTEL: {nf} and ecx, 123456
0x62,0xf4,0x7c,0x0c,0x81,0xe1,0x40,0xe2,0x01,0x00
# ATT: andl $123456, %ecx, %edx
# INTEL: and edx, ecx, 123456
0x62,0xf4,0x6c,0x18,0x81,0xe1,0x40,0xe2,0x01,0x00
# ATT: {nf} andl $123456, %ecx, %edx
# INTEL: {nf} and edx, ecx, 123456
0x62,0xf4,0x6c,0x1c,0x81,0xe1,0x40,0xe2,0x01,0x00
# ATT: {evex} andq $123456, %r9
# INTEL: {evex} and r9, 123456
0x62,0xd4,0xfc,0x08,0x81,0xe1,0x40,0xe2,0x01,0x00
# ATT: {nf} andq $123456, %r9
# INTEL: {nf} and r9, 123456
0x62,0xd4,0xfc,0x0c,0x81,0xe1,0x40,0xe2,0x01,0x00
# ATT: andq $123456, %r9, %r15
# INTEL: and r15, r9, 123456
0x62,0xd4,0x84,0x18,0x81,0xe1,0x40,0xe2,0x01,0x00
# ATT: {nf} andq $123456, %r9, %r15
# INTEL: {nf} and r15, r9, 123456
0x62,0xd4,0x84,0x1c,0x81,0xe1,0x40,0xe2,0x01,0x00
# ATT: {evex} andl $123456, 291(%r8,%rax,4)
# INTEL: {evex} and dword ptr [r8 + 4*rax + 291], 123456
0x62,0xd4,0x7c,0x08,0x81,0xa4,0x80,0x23,0x01,0x00,0x00,0x40,0xe2,0x01,0x00
# ATT: {nf} andl $123456, 291(%r8,%rax,4)
# INTEL: {nf} and dword ptr [r8 + 4*rax + 291], 123456
0x62,0xd4,0x7c,0x0c,0x81,0xa4,0x80,0x23,0x01,0x00,0x00,0x40,0xe2,0x01,0x00
# ATT: andl $123456, 291(%r8,%rax,4), %ecx
# INTEL: and ecx, dword ptr [r8 + 4*rax + 291], 123456
0x62,0xd4,0x74,0x18,0x81,0xa4,0x80,0x23,0x01,0x00,0x00,0x40,0xe2,0x01,0x00
# ATT: {nf} andl $123456, 291(%r8,%rax,4), %ecx
# INTEL: {nf} and ecx, dword ptr [r8 + 4*rax + 291], 123456
0x62,0xd4,0x74,0x1c,0x81,0xa4,0x80,0x23,0x01,0x00,0x00,0x40,0xe2,0x01,0x00
# ATT: {evex} andq $123456, 291(%r8,%rax,4)
# INTEL: {evex} and qword ptr [r8 + 4*rax + 291], 123456
0x62,0xd4,0xfc,0x08,0x81,0xa4,0x80,0x23,0x01,0x00,0x00,0x40,0xe2,0x01,0x00
# ATT: {nf} andq $123456, 291(%r8,%rax,4)
# INTEL: {nf} and qword ptr [r8 + 4*rax + 291], 123456
0x62,0xd4,0xfc,0x0c,0x81,0xa4,0x80,0x23,0x01,0x00,0x00,0x40,0xe2,0x01,0x00
# ATT: andq $123456, 291(%r8,%rax,4), %r9
# INTEL: and r9, qword ptr [r8 + 4*rax + 291], 123456
0x62,0xd4,0xb4,0x18,0x81,0xa4,0x80,0x23,0x01,0x00,0x00,0x40,0xe2,0x01,0x00
# ATT: {nf} andq $123456, 291(%r8,%rax,4), %r9
# INTEL: {nf} and r9, qword ptr [r8 + 4*rax + 291], 123456
0x62,0xd4,0xb4,0x1c,0x81,0xa4,0x80,0x23,0x01,0x00,0x00,0x40,0xe2,0x01,0x00
# ATT: {evex} andb %bl, %cl
# INTEL: {evex} and cl, bl
0x62,0xf4,0x7c,0x08,0x20,0xd9
# ATT: {nf} andb %bl, %cl
# INTEL: {nf} and cl, bl
0x62,0xf4,0x7c,0x0c,0x20,0xd9
# ATT: andb %bl, %cl, %r8b
# INTEL: and r8b, cl, bl
0x62,0xf4,0x3c,0x18,0x20,0xd9
# ATT: {nf} andb %bl, %cl, %r8b
# INTEL: {nf} and r8b, cl, bl
0x62,0xf4,0x3c,0x1c,0x20,0xd9
# ATT: {evex} andb %bl, 291(%r8,%rax,4)
# INTEL: {evex} and byte ptr [r8 + 4*rax + 291], bl
0x62,0xd4,0x7c,0x08,0x20,0x9c,0x80,0x23,0x01,0x00,0x00
# ATT: {nf} andb %bl, 291(%r8,%rax,4)
# INTEL: {nf} and byte ptr [r8 + 4*rax + 291], bl
0x62,0xd4,0x7c,0x0c,0x20,0x9c,0x80,0x23,0x01,0x00,0x00
# ATT: andb %bl, 291(%r8,%rax,4), %cl
# INTEL: and cl, byte ptr [r8 + 4*rax + 291], bl
0x62,0xd4,0x74,0x18,0x20,0x9c,0x80,0x23,0x01,0x00,0x00
# ATT: {nf} andb %bl, 291(%r8,%rax,4), %cl
# INTEL: {nf} and cl, byte ptr [r8 + 4*rax + 291], bl
0x62,0xd4,0x74,0x1c,0x20,0x9c,0x80,0x23,0x01,0x00,0x00
# ATT: {evex} andw %dx, %ax
# INTEL: {evex} and ax, dx
0x62,0xf4,0x7d,0x08,0x21,0xd0
# ATT: {nf} andw %dx, %ax
# INTEL: {nf} and ax, dx
0x62,0xf4,0x7d,0x0c,0x21,0xd0
# ATT: andw %dx, %ax, %r9w
# INTEL: and r9w, ax, dx
0x62,0xf4,0x35,0x18,0x21,0xd0
# ATT: {nf} andw %dx, %ax, %r9w
# INTEL: {nf} and r9w, ax, dx
0x62,0xf4,0x35,0x1c,0x21,0xd0
# ATT: {evex} andw %dx, 291(%r8,%rax,4)
# INTEL: {evex} and word ptr [r8 + 4*rax + 291], dx
0x62,0xd4,0x7d,0x08,0x21,0x94,0x80,0x23,0x01,0x00,0x00
# ATT: {nf} andw %dx, 291(%r8,%rax,4)
# INTEL: {nf} and word ptr [r8 + 4*rax + 291], dx
0x62,0xd4,0x7d,0x0c,0x21,0x94,0x80,0x23,0x01,0x00,0x00
# ATT: andw %dx, 291(%r8,%rax,4), %ax
# INTEL: and ax, word ptr [r8 + 4*rax + 291], dx
0x62,0xd4,0x7d,0x18,0x21,0x94,0x80,0x23,0x01,0x00,0x00
# ATT: {nf} andw %dx, 291(%r8,%rax,4), %ax
# INTEL: {nf} and ax, word ptr [r8 + 4*rax + 291], dx
0x62,0xd4,0x7d,0x1c,0x21,0x94,0x80,0x23,0x01,0x00,0x00
# ATT: {evex} andl %ecx, %edx
# INTEL: {evex} and edx, ecx
0x62,0xf4,0x7c,0x08,0x21,0xca
# ATT: {nf} andl %ecx, %edx
# INTEL: {nf} and edx, ecx
0x62,0xf4,0x7c,0x0c,0x21,0xca
# ATT: andl %ecx, %edx, %r10d
# INTEL: and r10d, edx, ecx
0x62,0xf4,0x2c,0x18,0x21,0xca
# ATT: {nf} andl %ecx, %edx, %r10d
# INTEL: {nf} and r10d, edx, ecx
0x62,0xf4,0x2c,0x1c,0x21,0xca
# ATT: {evex} andl %ecx, 291(%r8,%rax,4)
# INTEL: {evex} and dword ptr [r8 + 4*rax + 291], ecx
0x62,0xd4,0x7c,0x08,0x21,0x8c,0x80,0x23,0x01,0x00,0x00
# ATT: {nf} andl %ecx, 291(%r8,%rax,4)
# INTEL: {nf} and dword ptr [r8 + 4*rax + 291], ecx
0x62,0xd4,0x7c,0x0c,0x21,0x8c,0x80,0x23,0x01,0x00,0x00
# ATT: andl %ecx, 291(%r8,%rax,4), %edx
# INTEL: and edx, dword ptr [r8 + 4*rax + 291], ecx
0x62,0xd4,0x6c,0x18,0x21,0x8c,0x80,0x23,0x01,0x00,0x00
# ATT: {nf} andl %ecx, 291(%r8,%rax,4), %edx
# INTEL: {nf} and edx, dword ptr [r8 + 4*rax + 291], ecx
0x62,0xd4,0x6c,0x1c,0x21,0x8c,0x80,0x23,0x01,0x00,0x00
# ATT: {evex} andq %r9, %r15
# INTEL: {evex} and r15, r9
0x62,0x54,0xfc,0x08,0x21,0xcf
# ATT: {nf} andq %r9, %r15
# INTEL: {nf} and r15, r9
0x62,0x54,0xfc,0x0c,0x21,0xcf
# ATT: andq %r9, %r15, %r11
# INTEL: and r11, r15, r9
0x62,0x54,0xa4,0x18,0x21,0xcf
# ATT: {nf} andq %r9, %r15, %r11
# INTEL: {nf} and r11, r15, r9
0x62,0x54,0xa4,0x1c,0x21,0xcf
# ATT: {evex} andq %r9, 291(%r8,%rax,4)
# INTEL: {evex} and qword ptr [r8 + 4*rax + 291], r9
0x62,0x54,0xfc,0x08,0x21,0x8c,0x80,0x23,0x01,0x00,0x00
# ATT: {nf} andq %r9, 291(%r8,%rax,4)
# INTEL: {nf} and qword ptr [r8 + 4*rax + 291], r9
0x62,0x54,0xfc,0x0c,0x21,0x8c,0x80,0x23,0x01,0x00,0x00
# ATT: andq %r9, 291(%r8,%rax,4), %r15
# INTEL: and r15, qword ptr [r8 + 4*rax + 291], r9
0x62,0x54,0x84,0x18,0x21,0x8c,0x80,0x23,0x01,0x00,0x00
# ATT: {nf} andq %r9, 291(%r8,%rax,4), %r15
# INTEL: {nf} and r15, qword ptr [r8 + 4*rax + 291], r9
0x62,0x54,0x84,0x1c,0x21,0x8c,0x80,0x23,0x01,0x00,0x00
# ATT: {evex} andb 291(%r8,%rax,4), %bl
# INTEL: {evex} and bl, byte ptr [r8 + 4*rax + 291]
0x62,0xd4,0x7c,0x08,0x22,0x9c,0x80,0x23,0x01,0x00,0x00
# ATT: {nf} andb 291(%r8,%rax,4), %bl
# INTEL: {nf} and bl, byte ptr [r8 + 4*rax + 291]
0x62,0xd4,0x7c,0x0c,0x22,0x9c,0x80,0x23,0x01,0x00,0x00
# ATT: andb 291(%r8,%rax,4), %bl, %cl
# INTEL: and cl, bl, byte ptr [r8 + 4*rax + 291]
0x62,0xd4,0x74,0x18,0x22,0x9c,0x80,0x23,0x01,0x00,0x00
# ATT: {nf} andb 291(%r8,%rax,4), %bl, %cl
# INTEL: {nf} and cl, bl, byte ptr [r8 + 4*rax + 291]
0x62,0xd4,0x74,0x1c,0x22,0x9c,0x80,0x23,0x01,0x00,0x00
# ATT: {evex} andw 291(%r8,%rax,4), %dx
# INTEL: {evex} and dx, word ptr [r8 + 4*rax + 291]
0x62,0xd4,0x7d,0x08,0x23,0x94,0x80,0x23,0x01,0x00,0x00
# ATT: {nf} andw 291(%r8,%rax,4), %dx
# INTEL: {nf} and dx, word ptr [r8 + 4*rax + 291]
0x62,0xd4,0x7d,0x0c,0x23,0x94,0x80,0x23,0x01,0x00,0x00
# ATT: andw 291(%r8,%rax,4), %dx, %ax
# INTEL: and ax, dx, word ptr [r8 + 4*rax + 291]
0x62,0xd4,0x7d,0x18,0x23,0x94,0x80,0x23,0x01,0x00,0x00
# ATT: {nf} andw 291(%r8,%rax,4), %dx, %ax
# INTEL: {nf} and ax, dx, word ptr [r8 + 4*rax + 291]
0x62,0xd4,0x7d,0x1c,0x23,0x94,0x80,0x23,0x01,0x00,0x00
# ATT: {evex} andl 291(%r8,%rax,4), %ecx
# INTEL: {evex} and ecx, dword ptr [r8 + 4*rax + 291]
0x62,0xd4,0x7c,0x08,0x23,0x8c,0x80,0x23,0x01,0x00,0x00
# ATT: {nf} andl 291(%r8,%rax,4), %ecx
# INTEL: {nf} and ecx, dword ptr [r8 + 4*rax + 291]
0x62,0xd4,0x7c,0x0c,0x23,0x8c,0x80,0x23,0x01,0x00,0x00
# ATT: andl 291(%r8,%rax,4), %ecx, %edx
# INTEL: and edx, ecx, dword ptr [r8 + 4*rax + 291]
0x62,0xd4,0x6c,0x18,0x23,0x8c,0x80,0x23,0x01,0x00,0x00
# ATT: {nf} andl 291(%r8,%rax,4), %ecx, %edx
# INTEL: {nf} and edx, ecx, dword ptr [r8 + 4*rax + 291]
0x62,0xd4,0x6c,0x1c,0x23,0x8c,0x80,0x23,0x01,0x00,0x00
# ATT: {evex} andq 291(%r8,%rax,4), %r9
# INTEL: {evex} and r9, qword ptr [r8 + 4*rax + 291]
0x62,0x54,0xfc,0x08,0x23,0x8c,0x80,0x23,0x01,0x00,0x00
# ATT: {nf} andq 291(%r8,%rax,4), %r9
# INTEL: {nf} and r9, qword ptr [r8 + 4*rax + 291]
0x62,0x54,0xfc,0x0c,0x23,0x8c,0x80,0x23,0x01,0x00,0x00
# ATT: andq 291(%r8,%rax,4), %r9, %r15
# INTEL: and r15, r9, qword ptr [r8 + 4*rax + 291]
0x62,0x54,0x84,0x18,0x23,0x8c,0x80,0x23,0x01,0x00,0x00
# ATT: {nf} andq 291(%r8,%rax,4), %r9, %r15
# INTEL: {nf} and r15, r9, qword ptr [r8 + 4*rax + 291]
0x62,0x54,0x84,0x1c,0x23,0x8c,0x80,0x23,0x01,0x00,0x00