llvm/llvm/test/MC/Disassembler/X86/apx/sbb.txt

# 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}	sbbb	$123, %bl
# INTEL: {evex}	sbb	bl, 123
0x62,0xf4,0x7c,0x08,0x80,0xdb,0x7b

# ATT:   sbbb	$123, %bl, %cl
# INTEL: sbb	cl, bl, 123
0x62,0xf4,0x74,0x18,0x80,0xdb,0x7b

# ATT:   {evex}	sbbw	$123, %dx
# INTEL: {evex}	sbb	dx, 123
0x62,0xf4,0x7d,0x08,0x83,0xda,0x7b

# ATT:   sbbw	$123, %dx, %ax
# INTEL: sbb	ax, dx, 123
0x62,0xf4,0x7d,0x18,0x83,0xda,0x7b

# ATT:   {evex}	sbbl	$123, %ecx
# INTEL: {evex}	sbb	ecx, 123
0x62,0xf4,0x7c,0x08,0x83,0xd9,0x7b

# ATT:   sbbl	$123, %ecx, %edx
# INTEL: sbb	edx, ecx, 123
0x62,0xf4,0x6c,0x18,0x83,0xd9,0x7b

# ATT:   {evex}	sbbq	$123, %r9
# INTEL: {evex}	sbb	r9, 123
0x62,0xd4,0xfc,0x08,0x83,0xd9,0x7b

# ATT:   sbbq	$123, %r9, %r15
# INTEL: sbb	r15, r9, 123
0x62,0xd4,0x84,0x18,0x83,0xd9,0x7b

# ATT:   {evex}	sbbb	$123, 291(%r8,%rax,4)
# INTEL: {evex}	sbb	byte ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0x7c,0x08,0x80,0x9c,0x80,0x23,0x01,0x00,0x00,0x7b

# ATT:   sbbb	$123, 291(%r8,%rax,4), %bl
# INTEL: sbb	bl, byte ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0x64,0x18,0x80,0x9c,0x80,0x23,0x01,0x00,0x00,0x7b

# ATT:   {evex}	sbbw	$123, 291(%r8,%rax,4)
# INTEL: {evex}	sbb	word ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0x7d,0x08,0x83,0x9c,0x80,0x23,0x01,0x00,0x00,0x7b

# ATT:   sbbw	$123, 291(%r8,%rax,4), %dx
# INTEL: sbb	dx, word ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0x6d,0x18,0x83,0x9c,0x80,0x23,0x01,0x00,0x00,0x7b

# ATT:   {evex}	sbbl	$123, 291(%r8,%rax,4)
# INTEL: {evex}	sbb	dword ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0x7c,0x08,0x83,0x9c,0x80,0x23,0x01,0x00,0x00,0x7b

# ATT:   sbbl	$123, 291(%r8,%rax,4), %ecx
# INTEL: sbb	ecx, dword ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0x74,0x18,0x83,0x9c,0x80,0x23,0x01,0x00,0x00,0x7b

# ATT:   {evex}	sbbq	$123, 291(%r8,%rax,4)
# INTEL: {evex}	sbb	qword ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0xfc,0x08,0x83,0x9c,0x80,0x23,0x01,0x00,0x00,0x7b

# ATT:   sbbq	$123, 291(%r8,%rax,4), %r9
# INTEL: sbb	r9, qword ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0xb4,0x18,0x83,0x9c,0x80,0x23,0x01,0x00,0x00,0x7b

# ATT:   {evex}	sbbw	$1234, %dx
# INTEL: {evex}	sbb	dx, 1234
0x62,0xf4,0x7d,0x08,0x81,0xda,0xd2,0x04

# ATT:   sbbw	$1234, %dx, %ax
# INTEL: sbb	ax, dx, 1234
0x62,0xf4,0x7d,0x18,0x81,0xda,0xd2,0x04

# ATT:   {evex}	sbbw	$1234, 291(%r8,%rax,4)
# INTEL: {evex}	sbb	word ptr [r8 + 4*rax + 291], 1234
0x62,0xd4,0x7d,0x08,0x81,0x9c,0x80,0x23,0x01,0x00,0x00,0xd2,0x04

# ATT:   sbbw	$1234, 291(%r8,%rax,4), %dx
# INTEL: sbb	dx, word ptr [r8 + 4*rax + 291], 1234
0x62,0xd4,0x6d,0x18,0x81,0x9c,0x80,0x23,0x01,0x00,0x00,0xd2,0x04

# ATT:   {evex}	sbbl	$123456, %ecx
# INTEL: {evex}	sbb	ecx, 123456
0x62,0xf4,0x7c,0x08,0x81,0xd9,0x40,0xe2,0x01,0x00

# ATT:   sbbl	$123456, %ecx, %edx
# INTEL: sbb	edx, ecx, 123456
0x62,0xf4,0x6c,0x18,0x81,0xd9,0x40,0xe2,0x01,0x00

# ATT:   {evex}	sbbq	$123456, %r9
# INTEL: {evex}	sbb	r9, 123456
0x62,0xd4,0xfc,0x08,0x81,0xd9,0x40,0xe2,0x01,0x00

# ATT:   sbbq	$123456, %r9, %r15
# INTEL: sbb	r15, r9, 123456
0x62,0xd4,0x84,0x18,0x81,0xd9,0x40,0xe2,0x01,0x00

# ATT:   {evex}	sbbl	$123456, 291(%r8,%rax,4)
# INTEL: {evex}	sbb	dword ptr [r8 + 4*rax + 291], 123456
0x62,0xd4,0x7c,0x08,0x81,0x9c,0x80,0x23,0x01,0x00,0x00,0x40,0xe2,0x01,0x00

# ATT:   sbbl	$123456, 291(%r8,%rax,4), %ecx
# INTEL: sbb	ecx, dword ptr [r8 + 4*rax + 291], 123456
0x62,0xd4,0x74,0x18,0x81,0x9c,0x80,0x23,0x01,0x00,0x00,0x40,0xe2,0x01,0x00

# ATT:   {evex}	sbbq	$123456, 291(%r8,%rax,4)
# INTEL: {evex}	sbb	qword ptr [r8 + 4*rax + 291], 123456
0x62,0xd4,0xfc,0x08,0x81,0x9c,0x80,0x23,0x01,0x00,0x00,0x40,0xe2,0x01,0x00

# ATT:   sbbq	$123456, 291(%r8,%rax,4), %r9
# INTEL: sbb	r9, qword ptr [r8 + 4*rax + 291], 123456
0x62,0xd4,0xb4,0x18,0x81,0x9c,0x80,0x23,0x01,0x00,0x00,0x40,0xe2,0x01,0x00

# ATT:   {evex}	sbbb	%bl, %cl
# INTEL: {evex}	sbb	cl, bl
0x62,0xf4,0x7c,0x08,0x18,0xd9

# ATT:   sbbb	%bl, %cl, %r8b
# INTEL: sbb	r8b, cl, bl
0x62,0xf4,0x3c,0x18,0x18,0xd9

# ATT:   {evex}	sbbb	%bl, 291(%r8,%rax,4)
# INTEL: {evex}	sbb	byte ptr [r8 + 4*rax + 291], bl
0x62,0xd4,0x7c,0x08,0x18,0x9c,0x80,0x23,0x01,0x00,0x00

# ATT:   sbbb	%bl, 291(%r8,%rax,4), %cl
# INTEL: sbb	cl, byte ptr [r8 + 4*rax + 291], bl
0x62,0xd4,0x74,0x18,0x18,0x9c,0x80,0x23,0x01,0x00,0x00

# ATT:   {evex}	sbbw	%dx, %ax
# INTEL: {evex}	sbb	ax, dx
0x62,0xf4,0x7d,0x08,0x19,0xd0

# ATT:   sbbw	%dx, %ax, %r9w
# INTEL: sbb	r9w, ax, dx
0x62,0xf4,0x35,0x18,0x19,0xd0

# ATT:   {evex}	sbbw	%dx, 291(%r8,%rax,4)
# INTEL: {evex}	sbb	word ptr [r8 + 4*rax + 291], dx
0x62,0xd4,0x7d,0x08,0x19,0x94,0x80,0x23,0x01,0x00,0x00

# ATT:   sbbw	%dx, 291(%r8,%rax,4), %ax
# INTEL: sbb	ax, word ptr [r8 + 4*rax + 291], dx
0x62,0xd4,0x7d,0x18,0x19,0x94,0x80,0x23,0x01,0x00,0x00

# ATT:   {evex}	sbbl	%ecx, %edx
# INTEL: {evex}	sbb	edx, ecx
0x62,0xf4,0x7c,0x08,0x19,0xca

# ATT:   sbbl	%ecx, %edx, %r10d
# INTEL: sbb	r10d, edx, ecx
0x62,0xf4,0x2c,0x18,0x19,0xca

# ATT:   {evex}	sbbl	%ecx, 291(%r8,%rax,4)
# INTEL: {evex}	sbb	dword ptr [r8 + 4*rax + 291], ecx
0x62,0xd4,0x7c,0x08,0x19,0x8c,0x80,0x23,0x01,0x00,0x00

# ATT:   sbbl	%ecx, 291(%r8,%rax,4), %edx
# INTEL: sbb	edx, dword ptr [r8 + 4*rax + 291], ecx
0x62,0xd4,0x6c,0x18,0x19,0x8c,0x80,0x23,0x01,0x00,0x00

# ATT:   {evex}	sbbq	%r9, %r15
# INTEL: {evex}	sbb	r15, r9
0x62,0x54,0xfc,0x08,0x19,0xcf

# ATT:   sbbq	%r9, %r15, %r11
# INTEL: sbb	r11, r15, r9
0x62,0x54,0xa4,0x18,0x19,0xcf

# ATT:   {evex}	sbbq	%r9, 291(%r8,%rax,4)
# INTEL: {evex}	sbb	qword ptr [r8 + 4*rax + 291], r9
0x62,0x54,0xfc,0x08,0x19,0x8c,0x80,0x23,0x01,0x00,0x00

# ATT:   sbbq	%r9, 291(%r8,%rax,4), %r15
# INTEL: sbb	r15, qword ptr [r8 + 4*rax + 291], r9
0x62,0x54,0x84,0x18,0x19,0x8c,0x80,0x23,0x01,0x00,0x00

# ATT:   {evex}	sbbb	291(%r8,%rax,4), %bl
# INTEL: {evex}	sbb	bl, byte ptr [r8 + 4*rax + 291]
0x62,0xd4,0x7c,0x08,0x1a,0x9c,0x80,0x23,0x01,0x00,0x00

# ATT:   sbbb	291(%r8,%rax,4), %bl, %cl
# INTEL: sbb	cl, bl, byte ptr [r8 + 4*rax + 291]
0x62,0xd4,0x74,0x18,0x1a,0x9c,0x80,0x23,0x01,0x00,0x00

# ATT:   {evex}	sbbw	291(%r8,%rax,4), %dx
# INTEL: {evex}	sbb	dx, word ptr [r8 + 4*rax + 291]
0x62,0xd4,0x7d,0x08,0x1b,0x94,0x80,0x23,0x01,0x00,0x00

# ATT:   sbbw	291(%r8,%rax,4), %dx, %ax
# INTEL: sbb	ax, dx, word ptr [r8 + 4*rax + 291]
0x62,0xd4,0x7d,0x18,0x1b,0x94,0x80,0x23,0x01,0x00,0x00

# ATT:   {evex}	sbbl	291(%r8,%rax,4), %ecx
# INTEL: {evex}	sbb	ecx, dword ptr [r8 + 4*rax + 291]
0x62,0xd4,0x7c,0x08,0x1b,0x8c,0x80,0x23,0x01,0x00,0x00

# ATT:   sbbl	291(%r8,%rax,4), %ecx, %edx
# INTEL: sbb	edx, ecx, dword ptr [r8 + 4*rax + 291]
0x62,0xd4,0x6c,0x18,0x1b,0x8c,0x80,0x23,0x01,0x00,0x00

# ATT:   {evex}	sbbq	291(%r8,%rax,4), %r9
# INTEL: {evex}	sbb	r9, qword ptr [r8 + 4*rax + 291]
0x62,0x54,0xfc,0x08,0x1b,0x8c,0x80,0x23,0x01,0x00,0x00

# ATT:   sbbq	291(%r8,%rax,4), %r9, %r15
# INTEL: sbb	r15, r9, qword ptr [r8 + 4*rax + 291]
0x62,0x54,0x84,0x18,0x1b,0x8c,0x80,0x23,0x01,0x00,0x00