llvm/llvm/test/MC/Disassembler/X86/apx/rol.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}	rolb	$123, %bl
# INTEL: {evex}	rol	bl, 123
0x62,0xf4,0x7c,0x08,0xc0,0xc3,0x7b

# ATT:   {nf}	rolb	$123, %bl
# INTEL: {nf}	rol	bl, 123
0x62,0xf4,0x7c,0x0c,0xc0,0xc3,0x7b

# ATT:   rolb	$123, %bl, %bl
# INTEL: rol	bl, bl, 123
0x62,0xf4,0x64,0x18,0xc0,0xc3,0x7b

# ATT:   {nf}	rolb	$123, %bl, %bl
# INTEL: {nf}	rol	bl, bl, 123
0x62,0xf4,0x64,0x1c,0xc0,0xc3,0x7b

# ATT:   {evex}	rolw	$123, %dx
# INTEL: {evex}	rol	dx, 123
0x62,0xf4,0x7d,0x08,0xc1,0xc2,0x7b

# ATT:   {nf}	rolw	$123, %dx
# INTEL: {nf}	rol	dx, 123
0x62,0xf4,0x7d,0x0c,0xc1,0xc2,0x7b

# ATT:   rolw	$123, %dx, %dx
# INTEL: rol	dx, dx, 123
0x62,0xf4,0x6d,0x18,0xc1,0xc2,0x7b

# ATT:   {nf}	rolw	$123, %dx, %dx
# INTEL: {nf}	rol	dx, dx, 123
0x62,0xf4,0x6d,0x1c,0xc1,0xc2,0x7b

# ATT:   {evex}	roll	$123, %ecx
# INTEL: {evex}	rol	ecx, 123
0x62,0xf4,0x7c,0x08,0xc1,0xc1,0x7b

# ATT:   {nf}	roll	$123, %ecx
# INTEL: {nf}	rol	ecx, 123
0x62,0xf4,0x7c,0x0c,0xc1,0xc1,0x7b

# ATT:   roll	$123, %ecx, %ecx
# INTEL: rol	ecx, ecx, 123
0x62,0xf4,0x74,0x18,0xc1,0xc1,0x7b

# ATT:   {nf}	roll	$123, %ecx, %ecx
# INTEL: {nf}	rol	ecx, ecx, 123
0x62,0xf4,0x74,0x1c,0xc1,0xc1,0x7b

# ATT:   {evex}	rolq	$123, %r9
# INTEL: {evex}	rol	r9, 123
0x62,0xd4,0xfc,0x08,0xc1,0xc1,0x7b

# ATT:   {nf}	rolq	$123, %r9
# INTEL: {nf}	rol	r9, 123
0x62,0xd4,0xfc,0x0c,0xc1,0xc1,0x7b

# ATT:   rolq	$123, %r9, %r9
# INTEL: rol	r9, r9, 123
0x62,0xd4,0xb4,0x18,0xc1,0xc1,0x7b

# ATT:   {nf}	rolq	$123, %r9, %r9
# INTEL: {nf}	rol	r9, r9, 123
0x62,0xd4,0xb4,0x1c,0xc1,0xc1,0x7b

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

# ATT:   {nf}	rolb	$123, 291(%r8,%rax,4)
# INTEL: {nf}	rol	byte ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0x7c,0x0c,0xc0,0x84,0x80,0x23,0x01,0x00,0x00,0x7b

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

# ATT:   {nf}	rolb	$123, 291(%r8,%rax,4), %bl
# INTEL: {nf}	rol	bl, byte ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0x64,0x1c,0xc0,0x84,0x80,0x23,0x01,0x00,0x00,0x7b

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

# ATT:   {nf}	rolw	$123, 291(%r8,%rax,4)
# INTEL: {nf}	rol	word ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0x7d,0x0c,0xc1,0x84,0x80,0x23,0x01,0x00,0x00,0x7b

# ATT:   rolw	$123, 291(%r8,%rax,4), %dx
# INTEL: rol	dx, word ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0x6d,0x18,0xc1,0x84,0x80,0x23,0x01,0x00,0x00,0x7b

# ATT:   {nf}	rolw	$123, 291(%r8,%rax,4), %dx
# INTEL: {nf}	rol	dx, word ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0x6d,0x1c,0xc1,0x84,0x80,0x23,0x01,0x00,0x00,0x7b

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

# ATT:   {nf}	roll	$123, 291(%r8,%rax,4)
# INTEL: {nf}	rol	dword ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0x7c,0x0c,0xc1,0x84,0x80,0x23,0x01,0x00,0x00,0x7b

# ATT:   roll	$123, 291(%r8,%rax,4), %ecx
# INTEL: rol	ecx, dword ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0x74,0x18,0xc1,0x84,0x80,0x23,0x01,0x00,0x00,0x7b

# ATT:   {nf}	roll	$123, 291(%r8,%rax,4), %ecx
# INTEL: {nf}	rol	ecx, dword ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0x74,0x1c,0xc1,0x84,0x80,0x23,0x01,0x00,0x00,0x7b

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

# ATT:   {nf}	rolq	$123, 291(%r8,%rax,4)
# INTEL: {nf}	rol	qword ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0xfc,0x0c,0xc1,0x84,0x80,0x23,0x01,0x00,0x00,0x7b

# ATT:   rolq	$123, 291(%r8,%rax,4), %r9
# INTEL: rol	r9, qword ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0xb4,0x18,0xc1,0x84,0x80,0x23,0x01,0x00,0x00,0x7b

# ATT:   {nf}	rolq	$123, 291(%r8,%rax,4), %r9
# INTEL: {nf}	rol	r9, qword ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0xb4,0x1c,0xc1,0x84,0x80,0x23,0x01,0x00,0x00,0x7b

# ATT:   {evex}	rolb	%bl
# INTEL: {evex}	rol	bl
0x62,0xf4,0x7c,0x08,0xd0,0xc3

# ATT:   {nf}	rolb	%bl
# INTEL: {nf}	rol	bl
0x62,0xf4,0x7c,0x0c,0xd0,0xc3

# ATT:   rolb	%bl, %bl
# INTEL: rol	bl, bl
0x62,0xf4,0x64,0x18,0xd0,0xc3

# ATT:   {nf}	rolb	%bl, %bl
# INTEL: {nf}	rol	bl, bl
0x62,0xf4,0x64,0x1c,0xd0,0xc3

# ATT:   {evex}	rolb	%cl, %bl
# INTEL: {evex}	rol	bl, cl
0x62,0xf4,0x7c,0x08,0xd2,0xc3

# ATT:   {nf}	rolb	%cl, %bl
# INTEL: {nf}	rol	bl, cl
0x62,0xf4,0x7c,0x0c,0xd2,0xc3

# ATT:   rolb	%cl, %bl, %bl
# INTEL: rol	bl, bl, cl
0x62,0xf4,0x64,0x18,0xd2,0xc3

# ATT:   {nf}	rolb	%cl, %bl, %bl
# INTEL: {nf}	rol	bl, bl, cl
0x62,0xf4,0x64,0x1c,0xd2,0xc3

# ATT:   {evex}	rolw	%cl, %dx
# INTEL: {evex}	rol	dx, cl
0x62,0xf4,0x7d,0x08,0xd3,0xc2

# ATT:   {nf}	rolw	%cl, %dx
# INTEL: {nf}	rol	dx, cl
0x62,0xf4,0x7d,0x0c,0xd3,0xc2

# ATT:   rolw	%cl, %dx, %dx
# INTEL: rol	dx, dx, cl
0x62,0xf4,0x6d,0x18,0xd3,0xc2

# ATT:   {nf}	rolw	%cl, %dx, %dx
# INTEL: {nf}	rol	dx, dx, cl
0x62,0xf4,0x6d,0x1c,0xd3,0xc2

# ATT:   {evex}	roll	%cl, %ecx
# INTEL: {evex}	rol	ecx, cl
0x62,0xf4,0x7c,0x08,0xd3,0xc1

# ATT:   {nf}	roll	%cl, %ecx
# INTEL: {nf}	rol	ecx, cl
0x62,0xf4,0x7c,0x0c,0xd3,0xc1

# ATT:   roll	%cl, %ecx, %ecx
# INTEL: rol	ecx, ecx, cl
0x62,0xf4,0x74,0x18,0xd3,0xc1

# ATT:   {nf}	roll	%cl, %ecx, %ecx
# INTEL: {nf}	rol	ecx, ecx, cl
0x62,0xf4,0x74,0x1c,0xd3,0xc1

# ATT:   {evex}	rolq	%cl, %r9
# INTEL: {evex}	rol	r9, cl
0x62,0xd4,0xfc,0x08,0xd3,0xc1

# ATT:   {nf}	rolq	%cl, %r9
# INTEL: {nf}	rol	r9, cl
0x62,0xd4,0xfc,0x0c,0xd3,0xc1

# ATT:   rolq	%cl, %r9, %r9
# INTEL: rol	r9, r9, cl
0x62,0xd4,0xb4,0x18,0xd3,0xc1

# ATT:   {nf}	rolq	%cl, %r9, %r9
# INTEL: {nf}	rol	r9, r9, cl
0x62,0xd4,0xb4,0x1c,0xd3,0xc1

# ATT:   {evex}	rolb	%cl, 291(%r8,%rax,4)
# INTEL: {evex}	rol	byte ptr [r8 + 4*rax + 291], cl
0x62,0xd4,0x7c,0x08,0xd2,0x84,0x80,0x23,0x01,0x00,0x00

# ATT:   {nf}	rolb	%cl, 291(%r8,%rax,4)
# INTEL: {nf}	rol	byte ptr [r8 + 4*rax + 291], cl
0x62,0xd4,0x7c,0x0c,0xd2,0x84,0x80,0x23,0x01,0x00,0x00

# ATT:   rolb	%cl, 291(%r8,%rax,4), %bl
# INTEL: rol	bl, byte ptr [r8 + 4*rax + 291], cl
0x62,0xd4,0x64,0x18,0xd2,0x84,0x80,0x23,0x01,0x00,0x00

# ATT:   {nf}	rolb	%cl, 291(%r8,%rax,4), %bl
# INTEL: {nf}	rol	bl, byte ptr [r8 + 4*rax + 291], cl
0x62,0xd4,0x64,0x1c,0xd2,0x84,0x80,0x23,0x01,0x00,0x00

# ATT:   {evex}	rolw	%cl, 291(%r8,%rax,4)
# INTEL: {evex}	rol	word ptr [r8 + 4*rax + 291], cl
0x62,0xd4,0x7d,0x08,0xd3,0x84,0x80,0x23,0x01,0x00,0x00

# ATT:   {nf}	rolw	%cl, 291(%r8,%rax,4)
# INTEL: {nf}	rol	word ptr [r8 + 4*rax + 291], cl
0x62,0xd4,0x7d,0x0c,0xd3,0x84,0x80,0x23,0x01,0x00,0x00

# ATT:   rolw	%cl, 291(%r8,%rax,4), %dx
# INTEL: rol	dx, word ptr [r8 + 4*rax + 291], cl
0x62,0xd4,0x6d,0x18,0xd3,0x84,0x80,0x23,0x01,0x00,0x00

# ATT:   {nf}	rolw	%cl, 291(%r8,%rax,4), %dx
# INTEL: {nf}	rol	dx, word ptr [r8 + 4*rax + 291], cl
0x62,0xd4,0x6d,0x1c,0xd3,0x84,0x80,0x23,0x01,0x00,0x00

# ATT:   {evex}	roll	%cl, 291(%r8,%rax,4)
# INTEL: {evex}	rol	dword ptr [r8 + 4*rax + 291], cl
0x62,0xd4,0x7c,0x08,0xd3,0x84,0x80,0x23,0x01,0x00,0x00

# ATT:   {nf}	roll	%cl, 291(%r8,%rax,4)
# INTEL: {nf}	rol	dword ptr [r8 + 4*rax + 291], cl
0x62,0xd4,0x7c,0x0c,0xd3,0x84,0x80,0x23,0x01,0x00,0x00

# ATT:   roll	%cl, 291(%r8,%rax,4), %ecx
# INTEL: rol	ecx, dword ptr [r8 + 4*rax + 291], cl
0x62,0xd4,0x74,0x18,0xd3,0x84,0x80,0x23,0x01,0x00,0x00

# ATT:   {nf}	roll	%cl, 291(%r8,%rax,4), %ecx
# INTEL: {nf}	rol	ecx, dword ptr [r8 + 4*rax + 291], cl
0x62,0xd4,0x74,0x1c,0xd3,0x84,0x80,0x23,0x01,0x00,0x00

# ATT:   {evex}	rolq	%cl, 291(%r8,%rax,4)
# INTEL: {evex}	rol	qword ptr [r8 + 4*rax + 291], cl
0x62,0xd4,0xfc,0x08,0xd3,0x84,0x80,0x23,0x01,0x00,0x00

# ATT:   {nf}	rolq	%cl, 291(%r8,%rax,4)
# INTEL: {nf}	rol	qword ptr [r8 + 4*rax + 291], cl
0x62,0xd4,0xfc,0x0c,0xd3,0x84,0x80,0x23,0x01,0x00,0x00

# ATT:   rolq	%cl, 291(%r8,%rax,4), %r9
# INTEL: rol	r9, qword ptr [r8 + 4*rax + 291], cl
0x62,0xd4,0xb4,0x18,0xd3,0x84,0x80,0x23,0x01,0x00,0x00

# ATT:   {nf}	rolq	%cl, 291(%r8,%rax,4), %r9
# INTEL: {nf}	rol	r9, qword ptr [r8 + 4*rax + 291], cl
0x62,0xd4,0xb4,0x1c,0xd3,0x84,0x80,0x23,0x01,0x00,0x00

# ATT:   {evex}	rolw	%dx
# INTEL: {evex}	rol	dx
0x62,0xf4,0x7d,0x08,0xd1,0xc2

# ATT:   {nf}	rolw	%dx
# INTEL: {nf}	rol	dx
0x62,0xf4,0x7d,0x0c,0xd1,0xc2

# ATT:   rolw	%dx, %dx
# INTEL: rol	dx, dx
0x62,0xf4,0x6d,0x18,0xd1,0xc2

# ATT:   {nf}	rolw	%dx, %dx
# INTEL: {nf}	rol	dx, dx
0x62,0xf4,0x6d,0x1c,0xd1,0xc2

# ATT:   {evex}	roll	%ecx
# INTEL: {evex}	rol	ecx
0x62,0xf4,0x7c,0x08,0xd1,0xc1

# ATT:   {nf}	roll	%ecx
# INTEL: {nf}	rol	ecx
0x62,0xf4,0x7c,0x0c,0xd1,0xc1

# ATT:   roll	%ecx, %ecx
# INTEL: rol	ecx, ecx
0x62,0xf4,0x74,0x18,0xd1,0xc1

# ATT:   {nf}	roll	%ecx, %ecx
# INTEL: {nf}	rol	ecx, ecx
0x62,0xf4,0x74,0x1c,0xd1,0xc1

# ATT:   {evex}	rolq	%r9
# INTEL: {evex}	rol	r9
0x62,0xd4,0xfc,0x08,0xd1,0xc1

# ATT:   {nf}	rolq	%r9
# INTEL: {nf}	rol	r9
0x62,0xd4,0xfc,0x0c,0xd1,0xc1

# ATT:   rolq	%r9, %r9
# INTEL: rol	r9, r9
0x62,0xd4,0xb4,0x18,0xd1,0xc1

# ATT:   {nf}	rolq	%r9, %r9
# INTEL: {nf}	rol	r9, r9
0x62,0xd4,0xb4,0x1c,0xd1,0xc1

# ATT:   {evex}	rolb	291(%r8,%rax,4)
# INTEL: {evex}	rol	byte ptr [r8 + 4*rax + 291]
0x62,0xd4,0x7c,0x08,0xd0,0x84,0x80,0x23,0x01,0x00,0x00

# ATT:   {nf}	rolb	291(%r8,%rax,4)
# INTEL: {nf}	rol	byte ptr [r8 + 4*rax + 291]
0x62,0xd4,0x7c,0x0c,0xd0,0x84,0x80,0x23,0x01,0x00,0x00

# ATT:   rolb	291(%r8,%rax,4), %bl
# INTEL: rol	bl, byte ptr [r8 + 4*rax + 291]
0x62,0xd4,0x64,0x18,0xd0,0x84,0x80,0x23,0x01,0x00,0x00

# ATT:   {nf}	rolb	291(%r8,%rax,4), %bl
# INTEL: {nf}	rol	bl, byte ptr [r8 + 4*rax + 291]
0x62,0xd4,0x64,0x1c,0xd0,0x84,0x80,0x23,0x01,0x00,0x00

# ATT:   {evex}	rolw	291(%r8,%rax,4)
# INTEL: {evex}	rol	word ptr [r8 + 4*rax + 291]
0x62,0xd4,0x7d,0x08,0xd1,0x84,0x80,0x23,0x01,0x00,0x00

# ATT:   {nf}	rolw	291(%r8,%rax,4)
# INTEL: {nf}	rol	word ptr [r8 + 4*rax + 291]
0x62,0xd4,0x7d,0x0c,0xd1,0x84,0x80,0x23,0x01,0x00,0x00

# ATT:   rolw	291(%r8,%rax,4), %dx
# INTEL: rol	dx, word ptr [r8 + 4*rax + 291]
0x62,0xd4,0x6d,0x18,0xd1,0x84,0x80,0x23,0x01,0x00,0x00

# ATT:   {nf}	rolw	291(%r8,%rax,4), %dx
# INTEL: {nf}	rol	dx, word ptr [r8 + 4*rax + 291]
0x62,0xd4,0x6d,0x1c,0xd1,0x84,0x80,0x23,0x01,0x00,0x00

# ATT:   {evex}	roll	291(%r8,%rax,4)
# INTEL: {evex}	rol	dword ptr [r8 + 4*rax + 291]
0x62,0xd4,0x7c,0x08,0xd1,0x84,0x80,0x23,0x01,0x00,0x00

# ATT:   {nf}	roll	291(%r8,%rax,4)
# INTEL: {nf}	rol	dword ptr [r8 + 4*rax + 291]
0x62,0xd4,0x7c,0x0c,0xd1,0x84,0x80,0x23,0x01,0x00,0x00

# ATT:   roll	291(%r8,%rax,4), %ecx
# INTEL: rol	ecx, dword ptr [r8 + 4*rax + 291]
0x62,0xd4,0x74,0x18,0xd1,0x84,0x80,0x23,0x01,0x00,0x00

# ATT:   {nf}	roll	291(%r8,%rax,4), %ecx
# INTEL: {nf}	rol	ecx, dword ptr [r8 + 4*rax + 291]
0x62,0xd4,0x74,0x1c,0xd1,0x84,0x80,0x23,0x01,0x00,0x00

# ATT:   {evex}	rolq	291(%r8,%rax,4)
# INTEL: {evex}	rol	qword ptr [r8 + 4*rax + 291]
0x62,0xd4,0xfc,0x08,0xd1,0x84,0x80,0x23,0x01,0x00,0x00

# ATT:   {nf}	rolq	291(%r8,%rax,4)
# INTEL: {nf}	rol	qword ptr [r8 + 4*rax + 291]
0x62,0xd4,0xfc,0x0c,0xd1,0x84,0x80,0x23,0x01,0x00,0x00

# ATT:   rolq	291(%r8,%rax,4), %r9
# INTEL: rol	r9, qword ptr [r8 + 4*rax + 291]
0x62,0xd4,0xb4,0x18,0xd1,0x84,0x80,0x23,0x01,0x00,0x00

# ATT:   {nf}	rolq	291(%r8,%rax,4), %r9
# INTEL: {nf}	rol	r9, qword ptr [r8 + 4*rax + 291]
0x62,0xd4,0xb4,0x1c,0xd1,0x84,0x80,0x23,0x01,0x00,0x00