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

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

# CHECK: {evex}	ror	bl, 123
# CHECK: encoding: [0x62,0xf4,0x7c,0x08,0xc0,0xcb,0x7b]
         {evex}	ror	bl, 123
# CHECK: {nf}	ror	bl, 123
# CHECK: encoding: [0x62,0xf4,0x7c,0x0c,0xc0,0xcb,0x7b]
         {nf}	ror	bl, 123
# CHECK: ror	bl, bl, 123
# CHECK: encoding: [0x62,0xf4,0x64,0x18,0xc0,0xcb,0x7b]
         ror	bl, bl, 123
# CHECK: {nf}	ror	bl, bl, 123
# CHECK: encoding: [0x62,0xf4,0x64,0x1c,0xc0,0xcb,0x7b]
         {nf}	ror	bl, bl, 123
# CHECK: {evex}	ror	dx, 123
# CHECK: encoding: [0x62,0xf4,0x7d,0x08,0xc1,0xca,0x7b]
         {evex}	ror	dx, 123
# CHECK: {nf}	ror	dx, 123
# CHECK: encoding: [0x62,0xf4,0x7d,0x0c,0xc1,0xca,0x7b]
         {nf}	ror	dx, 123
# CHECK: ror	dx, dx, 123
# CHECK: encoding: [0x62,0xf4,0x6d,0x18,0xc1,0xca,0x7b]
         ror	dx, dx, 123
# CHECK: {nf}	ror	dx, dx, 123
# CHECK: encoding: [0x62,0xf4,0x6d,0x1c,0xc1,0xca,0x7b]
         {nf}	ror	dx, dx, 123
# CHECK: {evex}	ror	ecx, 123
# CHECK: encoding: [0x62,0xf4,0x7c,0x08,0xc1,0xc9,0x7b]
         {evex}	ror	ecx, 123
# CHECK: {nf}	ror	ecx, 123
# CHECK: encoding: [0x62,0xf4,0x7c,0x0c,0xc1,0xc9,0x7b]
         {nf}	ror	ecx, 123
# CHECK: ror	ecx, ecx, 123
# CHECK: encoding: [0x62,0xf4,0x74,0x18,0xc1,0xc9,0x7b]
         ror	ecx, ecx, 123
# CHECK: {nf}	ror	ecx, ecx, 123
# CHECK: encoding: [0x62,0xf4,0x74,0x1c,0xc1,0xc9,0x7b]
         {nf}	ror	ecx, ecx, 123
# CHECK: {evex}	ror	r9, 123
# CHECK: encoding: [0x62,0xd4,0xfc,0x08,0xc1,0xc9,0x7b]
         {evex}	ror	r9, 123
# CHECK: {nf}	ror	r9, 123
# CHECK: encoding: [0x62,0xd4,0xfc,0x0c,0xc1,0xc9,0x7b]
         {nf}	ror	r9, 123
# CHECK: ror	r9, r9, 123
# CHECK: encoding: [0x62,0xd4,0xb4,0x18,0xc1,0xc9,0x7b]
         ror	r9, r9, 123
# CHECK: {nf}	ror	r9, r9, 123
# CHECK: encoding: [0x62,0xd4,0xb4,0x1c,0xc1,0xc9,0x7b]
         {nf}	ror	r9, r9, 123
# CHECK: {evex}	ror	byte ptr [r8 + 4*rax + 291], 123
# CHECK: encoding: [0x62,0xd4,0x7c,0x08,0xc0,0x8c,0x80,0x23,0x01,0x00,0x00,0x7b]
         {evex}	ror	byte ptr [r8 + 4*rax + 291], 123
# CHECK: {nf}	ror	byte ptr [r8 + 4*rax + 291], 123
# CHECK: encoding: [0x62,0xd4,0x7c,0x0c,0xc0,0x8c,0x80,0x23,0x01,0x00,0x00,0x7b]
         {nf}	ror	byte ptr [r8 + 4*rax + 291], 123
# CHECK: ror	bl, byte ptr [r8 + 4*rax + 291], 123
# CHECK: encoding: [0x62,0xd4,0x64,0x18,0xc0,0x8c,0x80,0x23,0x01,0x00,0x00,0x7b]
         ror	bl, byte ptr [r8 + 4*rax + 291], 123
# CHECK: {nf}	ror	bl, byte ptr [r8 + 4*rax + 291], 123
# CHECK: encoding: [0x62,0xd4,0x64,0x1c,0xc0,0x8c,0x80,0x23,0x01,0x00,0x00,0x7b]
         {nf}	ror	bl, byte ptr [r8 + 4*rax + 291], 123
# CHECK: {evex}	ror	word ptr [r8 + 4*rax + 291], 123
# CHECK: encoding: [0x62,0xd4,0x7d,0x08,0xc1,0x8c,0x80,0x23,0x01,0x00,0x00,0x7b]
         {evex}	ror	word ptr [r8 + 4*rax + 291], 123
# CHECK: {nf}	ror	word ptr [r8 + 4*rax + 291], 123
# CHECK: encoding: [0x62,0xd4,0x7d,0x0c,0xc1,0x8c,0x80,0x23,0x01,0x00,0x00,0x7b]
         {nf}	ror	word ptr [r8 + 4*rax + 291], 123
# CHECK: ror	dx, word ptr [r8 + 4*rax + 291], 123
# CHECK: encoding: [0x62,0xd4,0x6d,0x18,0xc1,0x8c,0x80,0x23,0x01,0x00,0x00,0x7b]
         ror	dx, word ptr [r8 + 4*rax + 291], 123
# CHECK: {nf}	ror	dx, word ptr [r8 + 4*rax + 291], 123
# CHECK: encoding: [0x62,0xd4,0x6d,0x1c,0xc1,0x8c,0x80,0x23,0x01,0x00,0x00,0x7b]
         {nf}	ror	dx, word ptr [r8 + 4*rax + 291], 123
# CHECK: {evex}	ror	dword ptr [r8 + 4*rax + 291], 123
# CHECK: encoding: [0x62,0xd4,0x7c,0x08,0xc1,0x8c,0x80,0x23,0x01,0x00,0x00,0x7b]
         {evex}	ror	dword ptr [r8 + 4*rax + 291], 123
# CHECK: {nf}	ror	dword ptr [r8 + 4*rax + 291], 123
# CHECK: encoding: [0x62,0xd4,0x7c,0x0c,0xc1,0x8c,0x80,0x23,0x01,0x00,0x00,0x7b]
         {nf}	ror	dword ptr [r8 + 4*rax + 291], 123
# CHECK: ror	ecx, dword ptr [r8 + 4*rax + 291], 123
# CHECK: encoding: [0x62,0xd4,0x74,0x18,0xc1,0x8c,0x80,0x23,0x01,0x00,0x00,0x7b]
         ror	ecx, dword ptr [r8 + 4*rax + 291], 123
# CHECK: {nf}	ror	ecx, dword ptr [r8 + 4*rax + 291], 123
# CHECK: encoding: [0x62,0xd4,0x74,0x1c,0xc1,0x8c,0x80,0x23,0x01,0x00,0x00,0x7b]
         {nf}	ror	ecx, dword ptr [r8 + 4*rax + 291], 123
# CHECK: {evex}	ror	qword ptr [r8 + 4*rax + 291], 123
# CHECK: encoding: [0x62,0xd4,0xfc,0x08,0xc1,0x8c,0x80,0x23,0x01,0x00,0x00,0x7b]
         {evex}	ror	qword ptr [r8 + 4*rax + 291], 123
# CHECK: {nf}	ror	qword ptr [r8 + 4*rax + 291], 123
# CHECK: encoding: [0x62,0xd4,0xfc,0x0c,0xc1,0x8c,0x80,0x23,0x01,0x00,0x00,0x7b]
         {nf}	ror	qword ptr [r8 + 4*rax + 291], 123
# CHECK: ror	r9, qword ptr [r8 + 4*rax + 291], 123
# CHECK: encoding: [0x62,0xd4,0xb4,0x18,0xc1,0x8c,0x80,0x23,0x01,0x00,0x00,0x7b]
         ror	r9, qword ptr [r8 + 4*rax + 291], 123
# CHECK: {nf}	ror	r9, qword ptr [r8 + 4*rax + 291], 123
# CHECK: encoding: [0x62,0xd4,0xb4,0x1c,0xc1,0x8c,0x80,0x23,0x01,0x00,0x00,0x7b]
         {nf}	ror	r9, qword ptr [r8 + 4*rax + 291], 123
# CHECK: {evex}	ror	bl
# CHECK: encoding: [0x62,0xf4,0x7c,0x08,0xd0,0xcb]
         {evex}	ror	bl
# CHECK: {nf}	ror	bl
# CHECK: encoding: [0x62,0xf4,0x7c,0x0c,0xd0,0xcb]
         {nf}	ror	bl
# CHECK: {evex}	ror	bl, cl
# CHECK: encoding: [0x62,0xf4,0x7c,0x08,0xd2,0xcb]
         {evex}	ror	bl, cl
# CHECK: {nf}	ror	bl, cl
# CHECK: encoding: [0x62,0xf4,0x7c,0x0c,0xd2,0xcb]
         {nf}	ror	bl, cl
# CHECK: ror	bl, bl, cl
# CHECK: encoding: [0x62,0xf4,0x64,0x18,0xd2,0xcb]
         ror	bl, bl, cl
# CHECK: {nf}	ror	bl, bl, cl
# CHECK: encoding: [0x62,0xf4,0x64,0x1c,0xd2,0xcb]
         {nf}	ror	bl, bl, cl
# CHECK: {evex}	ror	dx, cl
# CHECK: encoding: [0x62,0xf4,0x7d,0x08,0xd3,0xca]
         {evex}	ror	dx, cl
# CHECK: {nf}	ror	dx, cl
# CHECK: encoding: [0x62,0xf4,0x7d,0x0c,0xd3,0xca]
         {nf}	ror	dx, cl
# CHECK: ror	dx, dx, cl
# CHECK: encoding: [0x62,0xf4,0x6d,0x18,0xd3,0xca]
         ror	dx, dx, cl
# CHECK: {nf}	ror	dx, dx, cl
# CHECK: encoding: [0x62,0xf4,0x6d,0x1c,0xd3,0xca]
         {nf}	ror	dx, dx, cl
# CHECK: {evex}	ror	ecx, cl
# CHECK: encoding: [0x62,0xf4,0x7c,0x08,0xd3,0xc9]
         {evex}	ror	ecx, cl
# CHECK: {nf}	ror	ecx, cl
# CHECK: encoding: [0x62,0xf4,0x7c,0x0c,0xd3,0xc9]
         {nf}	ror	ecx, cl
# CHECK: ror	ecx, ecx, cl
# CHECK: encoding: [0x62,0xf4,0x74,0x18,0xd3,0xc9]
         ror	ecx, ecx, cl
# CHECK: {nf}	ror	ecx, ecx, cl
# CHECK: encoding: [0x62,0xf4,0x74,0x1c,0xd3,0xc9]
         {nf}	ror	ecx, ecx, cl
# CHECK: {evex}	ror	r9, cl
# CHECK: encoding: [0x62,0xd4,0xfc,0x08,0xd3,0xc9]
         {evex}	ror	r9, cl
# CHECK: {nf}	ror	r9, cl
# CHECK: encoding: [0x62,0xd4,0xfc,0x0c,0xd3,0xc9]
         {nf}	ror	r9, cl
# CHECK: ror	r9, r9, cl
# CHECK: encoding: [0x62,0xd4,0xb4,0x18,0xd3,0xc9]
         ror	r9, r9, cl
# CHECK: {nf}	ror	r9, r9, cl
# CHECK: encoding: [0x62,0xd4,0xb4,0x1c,0xd3,0xc9]
         {nf}	ror	r9, r9, cl
# CHECK: {evex}	ror	byte ptr [r8 + 4*rax + 291], cl
# CHECK: encoding: [0x62,0xd4,0x7c,0x08,0xd2,0x8c,0x80,0x23,0x01,0x00,0x00]
         {evex}	ror	byte ptr [r8 + 4*rax + 291], cl
# CHECK: {nf}	ror	byte ptr [r8 + 4*rax + 291], cl
# CHECK: encoding: [0x62,0xd4,0x7c,0x0c,0xd2,0x8c,0x80,0x23,0x01,0x00,0x00]
         {nf}	ror	byte ptr [r8 + 4*rax + 291], cl
# CHECK: ror	bl, byte ptr [r8 + 4*rax + 291], cl
# CHECK: encoding: [0x62,0xd4,0x64,0x18,0xd2,0x8c,0x80,0x23,0x01,0x00,0x00]
         ror	bl, byte ptr [r8 + 4*rax + 291], cl
# CHECK: {nf}	ror	bl, byte ptr [r8 + 4*rax + 291], cl
# CHECK: encoding: [0x62,0xd4,0x64,0x1c,0xd2,0x8c,0x80,0x23,0x01,0x00,0x00]
         {nf}	ror	bl, byte ptr [r8 + 4*rax + 291], cl
# CHECK: {evex}	ror	word ptr [r8 + 4*rax + 291], cl
# CHECK: encoding: [0x62,0xd4,0x7d,0x08,0xd3,0x8c,0x80,0x23,0x01,0x00,0x00]
         {evex}	ror	word ptr [r8 + 4*rax + 291], cl
# CHECK: {nf}	ror	word ptr [r8 + 4*rax + 291], cl
# CHECK: encoding: [0x62,0xd4,0x7d,0x0c,0xd3,0x8c,0x80,0x23,0x01,0x00,0x00]
         {nf}	ror	word ptr [r8 + 4*rax + 291], cl
# CHECK: ror	dx, word ptr [r8 + 4*rax + 291], cl
# CHECK: encoding: [0x62,0xd4,0x6d,0x18,0xd3,0x8c,0x80,0x23,0x01,0x00,0x00]
         ror	dx, word ptr [r8 + 4*rax + 291], cl
# CHECK: {nf}	ror	dx, word ptr [r8 + 4*rax + 291], cl
# CHECK: encoding: [0x62,0xd4,0x6d,0x1c,0xd3,0x8c,0x80,0x23,0x01,0x00,0x00]
         {nf}	ror	dx, word ptr [r8 + 4*rax + 291], cl
# CHECK: {evex}	ror	dword ptr [r8 + 4*rax + 291], cl
# CHECK: encoding: [0x62,0xd4,0x7c,0x08,0xd3,0x8c,0x80,0x23,0x01,0x00,0x00]
         {evex}	ror	dword ptr [r8 + 4*rax + 291], cl
# CHECK: {nf}	ror	dword ptr [r8 + 4*rax + 291], cl
# CHECK: encoding: [0x62,0xd4,0x7c,0x0c,0xd3,0x8c,0x80,0x23,0x01,0x00,0x00]
         {nf}	ror	dword ptr [r8 + 4*rax + 291], cl
# CHECK: ror	ecx, dword ptr [r8 + 4*rax + 291], cl
# CHECK: encoding: [0x62,0xd4,0x74,0x18,0xd3,0x8c,0x80,0x23,0x01,0x00,0x00]
         ror	ecx, dword ptr [r8 + 4*rax + 291], cl
# CHECK: {nf}	ror	ecx, dword ptr [r8 + 4*rax + 291], cl
# CHECK: encoding: [0x62,0xd4,0x74,0x1c,0xd3,0x8c,0x80,0x23,0x01,0x00,0x00]
         {nf}	ror	ecx, dword ptr [r8 + 4*rax + 291], cl
# CHECK: {evex}	ror	qword ptr [r8 + 4*rax + 291], cl
# CHECK: encoding: [0x62,0xd4,0xfc,0x08,0xd3,0x8c,0x80,0x23,0x01,0x00,0x00]
         {evex}	ror	qword ptr [r8 + 4*rax + 291], cl
# CHECK: {nf}	ror	qword ptr [r8 + 4*rax + 291], cl
# CHECK: encoding: [0x62,0xd4,0xfc,0x0c,0xd3,0x8c,0x80,0x23,0x01,0x00,0x00]
         {nf}	ror	qword ptr [r8 + 4*rax + 291], cl
# CHECK: ror	r9, qword ptr [r8 + 4*rax + 291], cl
# CHECK: encoding: [0x62,0xd4,0xb4,0x18,0xd3,0x8c,0x80,0x23,0x01,0x00,0x00]
         ror	r9, qword ptr [r8 + 4*rax + 291], cl
# CHECK: {nf}	ror	r9, qword ptr [r8 + 4*rax + 291], cl
# CHECK: encoding: [0x62,0xd4,0xb4,0x1c,0xd3,0x8c,0x80,0x23,0x01,0x00,0x00]
         {nf}	ror	r9, qword ptr [r8 + 4*rax + 291], cl
# CHECK: {evex}	ror	dx
# CHECK: encoding: [0x62,0xf4,0x7d,0x08,0xd1,0xca]
         {evex}	ror	dx
# CHECK: {nf}	ror	dx
# CHECK: encoding: [0x62,0xf4,0x7d,0x0c,0xd1,0xca]
         {nf}	ror	dx
# CHECK: ror	dx, dx
# CHECK: encoding: [0x62,0xf4,0x6d,0x18,0xd1,0xca]
         ror	dx, dx
# CHECK: {nf}	ror	dx, dx
# CHECK: encoding: [0x62,0xf4,0x6d,0x1c,0xd1,0xca]
         {nf}	ror	dx, dx
# CHECK: {evex}	ror	ecx
# CHECK: encoding: [0x62,0xf4,0x7c,0x08,0xd1,0xc9]
         {evex}	ror	ecx
# CHECK: {nf}	ror	ecx
# CHECK: encoding: [0x62,0xf4,0x7c,0x0c,0xd1,0xc9]
         {nf}	ror	ecx
# CHECK: ror	ecx, ecx
# CHECK: encoding: [0x62,0xf4,0x74,0x18,0xd1,0xc9]
         ror	ecx, ecx
# CHECK: {nf}	ror	ecx, ecx
# CHECK: encoding: [0x62,0xf4,0x74,0x1c,0xd1,0xc9]
         {nf}	ror	ecx, ecx
# CHECK: {evex}	ror	r9
# CHECK: encoding: [0x62,0xd4,0xfc,0x08,0xd1,0xc9]
         {evex}	ror	r9
# CHECK: {nf}	ror	r9
# CHECK: encoding: [0x62,0xd4,0xfc,0x0c,0xd1,0xc9]
         {nf}	ror	r9
# CHECK: ror	r9, r9
# CHECK: encoding: [0x62,0xd4,0xb4,0x18,0xd1,0xc9]
         ror	r9, r9
# CHECK: {nf}	ror	r9, r9
# CHECK: encoding: [0x62,0xd4,0xb4,0x1c,0xd1,0xc9]
         {nf}	ror	r9, r9
# CHECK: {evex}	ror	byte ptr [r8 + 4*rax + 291]
# CHECK: encoding: [0x62,0xd4,0x7c,0x08,0xd0,0x8c,0x80,0x23,0x01,0x00,0x00]
         {evex}	ror	byte ptr [r8 + 4*rax + 291]
# CHECK: {nf}	ror	byte ptr [r8 + 4*rax + 291]
# CHECK: encoding: [0x62,0xd4,0x7c,0x0c,0xd0,0x8c,0x80,0x23,0x01,0x00,0x00]
         {nf}	ror	byte ptr [r8 + 4*rax + 291]
# CHECK: ror	bl, byte ptr [r8 + 4*rax + 291]
# CHECK: encoding: [0x62,0xd4,0x64,0x18,0xd0,0x8c,0x80,0x23,0x01,0x00,0x00]
         ror	bl, byte ptr [r8 + 4*rax + 291]
# CHECK: {nf}	ror	bl, byte ptr [r8 + 4*rax + 291]
# CHECK: encoding: [0x62,0xd4,0x64,0x1c,0xd0,0x8c,0x80,0x23,0x01,0x00,0x00]
         {nf}	ror	bl, byte ptr [r8 + 4*rax + 291]
# CHECK: {evex}	ror	word ptr [r8 + 4*rax + 291]
# CHECK: encoding: [0x62,0xd4,0x7d,0x08,0xd1,0x8c,0x80,0x23,0x01,0x00,0x00]
         {evex}	ror	word ptr [r8 + 4*rax + 291]
# CHECK: {nf}	ror	word ptr [r8 + 4*rax + 291]
# CHECK: encoding: [0x62,0xd4,0x7d,0x0c,0xd1,0x8c,0x80,0x23,0x01,0x00,0x00]
         {nf}	ror	word ptr [r8 + 4*rax + 291]
# CHECK: ror	dx, word ptr [r8 + 4*rax + 291]
# CHECK: encoding: [0x62,0xd4,0x6d,0x18,0xd1,0x8c,0x80,0x23,0x01,0x00,0x00]
         ror	dx, word ptr [r8 + 4*rax + 291]
# CHECK: {nf}	ror	dx, word ptr [r8 + 4*rax + 291]
# CHECK: encoding: [0x62,0xd4,0x6d,0x1c,0xd1,0x8c,0x80,0x23,0x01,0x00,0x00]
         {nf}	ror	dx, word ptr [r8 + 4*rax + 291]
# CHECK: {evex}	ror	dword ptr [r8 + 4*rax + 291]
# CHECK: encoding: [0x62,0xd4,0x7c,0x08,0xd1,0x8c,0x80,0x23,0x01,0x00,0x00]
         {evex}	ror	dword ptr [r8 + 4*rax + 291]
# CHECK: {nf}	ror	dword ptr [r8 + 4*rax + 291]
# CHECK: encoding: [0x62,0xd4,0x7c,0x0c,0xd1,0x8c,0x80,0x23,0x01,0x00,0x00]
         {nf}	ror	dword ptr [r8 + 4*rax + 291]
# CHECK: ror	ecx, dword ptr [r8 + 4*rax + 291]
# CHECK: encoding: [0x62,0xd4,0x74,0x18,0xd1,0x8c,0x80,0x23,0x01,0x00,0x00]
         ror	ecx, dword ptr [r8 + 4*rax + 291]
# CHECK: {nf}	ror	ecx, dword ptr [r8 + 4*rax + 291]
# CHECK: encoding: [0x62,0xd4,0x74,0x1c,0xd1,0x8c,0x80,0x23,0x01,0x00,0x00]
         {nf}	ror	ecx, dword ptr [r8 + 4*rax + 291]
# CHECK: {evex}	ror	qword ptr [r8 + 4*rax + 291]
# CHECK: encoding: [0x62,0xd4,0xfc,0x08,0xd1,0x8c,0x80,0x23,0x01,0x00,0x00]
         {evex}	ror	qword ptr [r8 + 4*rax + 291]
# CHECK: {nf}	ror	qword ptr [r8 + 4*rax + 291]
# CHECK: encoding: [0x62,0xd4,0xfc,0x0c,0xd1,0x8c,0x80,0x23,0x01,0x00,0x00]
         {nf}	ror	qword ptr [r8 + 4*rax + 291]
# CHECK: ror	r9, qword ptr [r8 + 4*rax + 291]
# CHECK: encoding: [0x62,0xd4,0xb4,0x18,0xd1,0x8c,0x80,0x23,0x01,0x00,0x00]
         ror	r9, qword ptr [r8 + 4*rax + 291]
# CHECK: {nf}	ror	r9, qword ptr [r8 + 4*rax + 291]
# CHECK: encoding: [0x62,0xd4,0xb4,0x1c,0xd1,0x8c,0x80,0x23,0x01,0x00,0x00]
         {nf}	ror	r9, qword ptr [r8 + 4*rax + 291]