llvm/llvm/test/MC/X86/apx/sbb-intel.s

# RUN: llvm-mc -triple x86_64 -show-encoding -x86-asm-syntax=intel -output-asm-variant=1 %s | FileCheck %s

# CHECK: {evex}	sbb	bl, 123
# CHECK: encoding: [0x62,0xf4,0x7c,0x08,0x80,0xdb,0x7b]
         {evex}	sbb	bl, 123
# CHECK: sbb	cl, bl, 123
# CHECK: encoding: [0x62,0xf4,0x74,0x18,0x80,0xdb,0x7b]
         sbb	cl, bl, 123
# CHECK: {evex}	sbb	dx, 123
# CHECK: encoding: [0x62,0xf4,0x7d,0x08,0x83,0xda,0x7b]
         {evex}	sbb	dx, 123
# CHECK: sbb	ax, dx, 123
# CHECK: encoding: [0x62,0xf4,0x7d,0x18,0x83,0xda,0x7b]
         sbb	ax, dx, 123
# CHECK: {evex}	sbb	ecx, 123
# CHECK: encoding: [0x62,0xf4,0x7c,0x08,0x83,0xd9,0x7b]
         {evex}	sbb	ecx, 123
# CHECK: sbb	edx, ecx, 123
# CHECK: encoding: [0x62,0xf4,0x6c,0x18,0x83,0xd9,0x7b]
         sbb	edx, ecx, 123
# CHECK: {evex}	sbb	r9, 123
# CHECK: encoding: [0x62,0xd4,0xfc,0x08,0x83,0xd9,0x7b]
         {evex}	sbb	r9, 123
# CHECK: sbb	r15, r9, 123
# CHECK: encoding: [0x62,0xd4,0x84,0x18,0x83,0xd9,0x7b]
         sbb	r15, r9, 123
# CHECK: {evex}	sbb	byte ptr [r8 + 4*rax + 291], 123
# CHECK: encoding: [0x62,0xd4,0x7c,0x08,0x80,0x9c,0x80,0x23,0x01,0x00,0x00,0x7b]
         {evex}	sbb	byte ptr [r8 + 4*rax + 291], 123
# CHECK: sbb	bl, byte ptr [r8 + 4*rax + 291], 123
# CHECK: encoding: [0x62,0xd4,0x64,0x18,0x80,0x9c,0x80,0x23,0x01,0x00,0x00,0x7b]
         sbb	bl, byte ptr [r8 + 4*rax + 291], 123
# CHECK: {evex}	sbb	word ptr [r8 + 4*rax + 291], 123
# CHECK: encoding: [0x62,0xd4,0x7d,0x08,0x83,0x9c,0x80,0x23,0x01,0x00,0x00,0x7b]
         {evex}	sbb	word ptr [r8 + 4*rax + 291], 123
# CHECK: sbb	dx, word ptr [r8 + 4*rax + 291], 123
# CHECK: encoding: [0x62,0xd4,0x6d,0x18,0x83,0x9c,0x80,0x23,0x01,0x00,0x00,0x7b]
         sbb	dx, word ptr [r8 + 4*rax + 291], 123
# CHECK: {evex}	sbb	dword ptr [r8 + 4*rax + 291], 123
# CHECK: encoding: [0x62,0xd4,0x7c,0x08,0x83,0x9c,0x80,0x23,0x01,0x00,0x00,0x7b]
         {evex}	sbb	dword ptr [r8 + 4*rax + 291], 123
# CHECK: sbb	ecx, dword ptr [r8 + 4*rax + 291], 123
# CHECK: encoding: [0x62,0xd4,0x74,0x18,0x83,0x9c,0x80,0x23,0x01,0x00,0x00,0x7b]
         sbb	ecx, dword ptr [r8 + 4*rax + 291], 123
# CHECK: {evex}	sbb	qword ptr [r8 + 4*rax + 291], 123
# CHECK: encoding: [0x62,0xd4,0xfc,0x08,0x83,0x9c,0x80,0x23,0x01,0x00,0x00,0x7b]
         {evex}	sbb	qword ptr [r8 + 4*rax + 291], 123
# CHECK: sbb	r9, qword ptr [r8 + 4*rax + 291], 123
# CHECK: encoding: [0x62,0xd4,0xb4,0x18,0x83,0x9c,0x80,0x23,0x01,0x00,0x00,0x7b]
         sbb	r9, qword ptr [r8 + 4*rax + 291], 123
# CHECK: {evex}	sbb	dx, 1234
# CHECK: encoding: [0x62,0xf4,0x7d,0x08,0x81,0xda,0xd2,0x04]
         {evex}	sbb	dx, 1234
# CHECK: sbb	ax, dx, 1234
# CHECK: encoding: [0x62,0xf4,0x7d,0x18,0x81,0xda,0xd2,0x04]
         sbb	ax, dx, 1234
# CHECK: {evex}	sbb	word ptr [r8 + 4*rax + 291], 1234
# CHECK: encoding: [0x62,0xd4,0x7d,0x08,0x81,0x9c,0x80,0x23,0x01,0x00,0x00,0xd2,0x04]
         {evex}	sbb	word ptr [r8 + 4*rax + 291], 1234
# CHECK: sbb	dx, word ptr [r8 + 4*rax + 291], 1234
# CHECK: encoding: [0x62,0xd4,0x6d,0x18,0x81,0x9c,0x80,0x23,0x01,0x00,0x00,0xd2,0x04]
         sbb	dx, word ptr [r8 + 4*rax + 291], 1234
# CHECK: {evex}	sbb	ecx, 123456
# CHECK: encoding: [0x62,0xf4,0x7c,0x08,0x81,0xd9,0x40,0xe2,0x01,0x00]
         {evex}	sbb	ecx, 123456
# CHECK: sbb	edx, ecx, 123456
# CHECK: encoding: [0x62,0xf4,0x6c,0x18,0x81,0xd9,0x40,0xe2,0x01,0x00]
         sbb	edx, ecx, 123456
# CHECK: {evex}	sbb	r9, 123456
# CHECK: encoding: [0x62,0xd4,0xfc,0x08,0x81,0xd9,0x40,0xe2,0x01,0x00]
         {evex}	sbb	r9, 123456
# CHECK: sbb	r15, r9, 123456
# CHECK: encoding: [0x62,0xd4,0x84,0x18,0x81,0xd9,0x40,0xe2,0x01,0x00]
         sbb	r15, r9, 123456
# CHECK: {evex}	sbb	dword ptr [r8 + 4*rax + 291], 123456
# CHECK: encoding: [0x62,0xd4,0x7c,0x08,0x81,0x9c,0x80,0x23,0x01,0x00,0x00,0x40,0xe2,0x01,0x00]
         {evex}	sbb	dword ptr [r8 + 4*rax + 291], 123456
# CHECK: sbb	ecx, dword ptr [r8 + 4*rax + 291], 123456
# CHECK: encoding: [0x62,0xd4,0x74,0x18,0x81,0x9c,0x80,0x23,0x01,0x00,0x00,0x40,0xe2,0x01,0x00]
         sbb	ecx, dword ptr [r8 + 4*rax + 291], 123456
# CHECK: {evex}	sbb	qword ptr [r8 + 4*rax + 291], 123456
# CHECK: encoding: [0x62,0xd4,0xfc,0x08,0x81,0x9c,0x80,0x23,0x01,0x00,0x00,0x40,0xe2,0x01,0x00]
         {evex}	sbb	qword ptr [r8 + 4*rax + 291], 123456
# CHECK: sbb	r9, qword ptr [r8 + 4*rax + 291], 123456
# CHECK: encoding: [0x62,0xd4,0xb4,0x18,0x81,0x9c,0x80,0x23,0x01,0x00,0x00,0x40,0xe2,0x01,0x00]
         sbb	r9, qword ptr [r8 + 4*rax + 291], 123456
# CHECK: {evex}	sbb	cl, bl
# CHECK: encoding: [0x62,0xf4,0x7c,0x08,0x18,0xd9]
         {evex}	sbb	cl, bl
# CHECK: sbb	r8b, cl, bl
# CHECK: encoding: [0x62,0xf4,0x3c,0x18,0x18,0xd9]
         sbb	r8b, cl, bl
# CHECK: {evex}	sbb	byte ptr [r8 + 4*rax + 291], bl
# CHECK: encoding: [0x62,0xd4,0x7c,0x08,0x18,0x9c,0x80,0x23,0x01,0x00,0x00]
         {evex}	sbb	byte ptr [r8 + 4*rax + 291], bl
# CHECK: sbb	cl, byte ptr [r8 + 4*rax + 291], bl
# CHECK: encoding: [0x62,0xd4,0x74,0x18,0x18,0x9c,0x80,0x23,0x01,0x00,0x00]
         sbb	cl, byte ptr [r8 + 4*rax + 291], bl
# CHECK: {evex}	sbb	ax, dx
# CHECK: encoding: [0x62,0xf4,0x7d,0x08,0x19,0xd0]
         {evex}	sbb	ax, dx
# CHECK: sbb	r9w, ax, dx
# CHECK: encoding: [0x62,0xf4,0x35,0x18,0x19,0xd0]
         sbb	r9w, ax, dx
# CHECK: {evex}	sbb	word ptr [r8 + 4*rax + 291], dx
# CHECK: encoding: [0x62,0xd4,0x7d,0x08,0x19,0x94,0x80,0x23,0x01,0x00,0x00]
         {evex}	sbb	word ptr [r8 + 4*rax + 291], dx
# CHECK: sbb	ax, word ptr [r8 + 4*rax + 291], dx
# CHECK: encoding: [0x62,0xd4,0x7d,0x18,0x19,0x94,0x80,0x23,0x01,0x00,0x00]
         sbb	ax, word ptr [r8 + 4*rax + 291], dx
# CHECK: {evex}	sbb	edx, ecx
# CHECK: encoding: [0x62,0xf4,0x7c,0x08,0x19,0xca]
         {evex}	sbb	edx, ecx
# CHECK: sbb	r10d, edx, ecx
# CHECK: encoding: [0x62,0xf4,0x2c,0x18,0x19,0xca]
         sbb	r10d, edx, ecx
# CHECK: {evex}	sbb	dword ptr [r8 + 4*rax + 291], ecx
# CHECK: encoding: [0x62,0xd4,0x7c,0x08,0x19,0x8c,0x80,0x23,0x01,0x00,0x00]
         {evex}	sbb	dword ptr [r8 + 4*rax + 291], ecx
# CHECK: sbb	edx, dword ptr [r8 + 4*rax + 291], ecx
# CHECK: encoding: [0x62,0xd4,0x6c,0x18,0x19,0x8c,0x80,0x23,0x01,0x00,0x00]
         sbb	edx, dword ptr [r8 + 4*rax + 291], ecx
# CHECK: {evex}	sbb	r15, r9
# CHECK: encoding: [0x62,0x54,0xfc,0x08,0x19,0xcf]
         {evex}	sbb	r15, r9
# CHECK: sbb	r11, r15, r9
# CHECK: encoding: [0x62,0x54,0xa4,0x18,0x19,0xcf]
         sbb	r11, r15, r9
# CHECK: {evex}	sbb	qword ptr [r8 + 4*rax + 291], r9
# CHECK: encoding: [0x62,0x54,0xfc,0x08,0x19,0x8c,0x80,0x23,0x01,0x00,0x00]
         {evex}	sbb	qword ptr [r8 + 4*rax + 291], r9
# CHECK: sbb	r15, qword ptr [r8 + 4*rax + 291], r9
# CHECK: encoding: [0x62,0x54,0x84,0x18,0x19,0x8c,0x80,0x23,0x01,0x00,0x00]
         sbb	r15, qword ptr [r8 + 4*rax + 291], r9
# CHECK: {evex}	sbb	bl, byte ptr [r8 + 4*rax + 291]
# CHECK: encoding: [0x62,0xd4,0x7c,0x08,0x1a,0x9c,0x80,0x23,0x01,0x00,0x00]
         {evex}	sbb	bl, byte ptr [r8 + 4*rax + 291]
# CHECK: sbb	cl, bl, byte ptr [r8 + 4*rax + 291]
# CHECK: encoding: [0x62,0xd4,0x74,0x18,0x1a,0x9c,0x80,0x23,0x01,0x00,0x00]
         sbb	cl, bl, byte ptr [r8 + 4*rax + 291]
# CHECK: {evex}	sbb	dx, word ptr [r8 + 4*rax + 291]
# CHECK: encoding: [0x62,0xd4,0x7d,0x08,0x1b,0x94,0x80,0x23,0x01,0x00,0x00]
         {evex}	sbb	dx, word ptr [r8 + 4*rax + 291]
# CHECK: sbb	ax, dx, word ptr [r8 + 4*rax + 291]
# CHECK: encoding: [0x62,0xd4,0x7d,0x18,0x1b,0x94,0x80,0x23,0x01,0x00,0x00]
         sbb	ax, dx, word ptr [r8 + 4*rax + 291]
# CHECK: {evex}	sbb	ecx, dword ptr [r8 + 4*rax + 291]
# CHECK: encoding: [0x62,0xd4,0x7c,0x08,0x1b,0x8c,0x80,0x23,0x01,0x00,0x00]
         {evex}	sbb	ecx, dword ptr [r8 + 4*rax + 291]
# CHECK: sbb	edx, ecx, dword ptr [r8 + 4*rax + 291]
# CHECK: encoding: [0x62,0xd4,0x6c,0x18,0x1b,0x8c,0x80,0x23,0x01,0x00,0x00]
         sbb	edx, ecx, dword ptr [r8 + 4*rax + 291]
# CHECK: {evex}	sbb	r9, qword ptr [r8 + 4*rax + 291]
# CHECK: encoding: [0x62,0x54,0xfc,0x08,0x1b,0x8c,0x80,0x23,0x01,0x00,0x00]
         {evex}	sbb	r9, qword ptr [r8 + 4*rax + 291]
# CHECK: sbb	r15, r9, qword ptr [r8 + 4*rax + 291]
# CHECK: encoding: [0x62,0x54,0x84,0x18,0x1b,0x8c,0x80,0x23,0x01,0x00,0x00]
         sbb	r15, r9, qword ptr [r8 + 4*rax + 291]