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

# ATT:   {nf}	shrb	$123, %bl
# INTEL: {nf}	shr	bl, 123
0x62,0xf4,0x7c,0x0c,0xc0,0xeb,0x7b

# ATT:   shrb	$123, %bl, %bl
# INTEL: shr	bl, bl, 123
0x62,0xf4,0x64,0x18,0xc0,0xeb,0x7b

# ATT:   {nf}	shrb	$123, %bl, %bl
# INTEL: {nf}	shr	bl, bl, 123
0x62,0xf4,0x64,0x1c,0xc0,0xeb,0x7b

# ATT:   {evex}	shrw	$123, %dx
# INTEL: {evex}	shr	dx, 123
0x62,0xf4,0x7d,0x08,0xc1,0xea,0x7b

# ATT:   {nf}	shrw	$123, %dx
# INTEL: {nf}	shr	dx, 123
0x62,0xf4,0x7d,0x0c,0xc1,0xea,0x7b

# ATT:   shrw	$123, %dx, %dx
# INTEL: shr	dx, dx, 123
0x62,0xf4,0x6d,0x18,0xc1,0xea,0x7b

# ATT:   {nf}	shrw	$123, %dx, %dx
# INTEL: {nf}	shr	dx, dx, 123
0x62,0xf4,0x6d,0x1c,0xc1,0xea,0x7b

# ATT:   {evex}	shrl	$123, %ecx
# INTEL: {evex}	shr	ecx, 123
0x62,0xf4,0x7c,0x08,0xc1,0xe9,0x7b

# ATT:   {nf}	shrl	$123, %ecx
# INTEL: {nf}	shr	ecx, 123
0x62,0xf4,0x7c,0x0c,0xc1,0xe9,0x7b

# ATT:   shrl	$123, %ecx, %ecx
# INTEL: shr	ecx, ecx, 123
0x62,0xf4,0x74,0x18,0xc1,0xe9,0x7b

# ATT:   {nf}	shrl	$123, %ecx, %ecx
# INTEL: {nf}	shr	ecx, ecx, 123
0x62,0xf4,0x74,0x1c,0xc1,0xe9,0x7b

# ATT:   {evex}	shrq	$123, %r9
# INTEL: {evex}	shr	r9, 123
0x62,0xd4,0xfc,0x08,0xc1,0xe9,0x7b

# ATT:   {nf}	shrq	$123, %r9
# INTEL: {nf}	shr	r9, 123
0x62,0xd4,0xfc,0x0c,0xc1,0xe9,0x7b

# ATT:   shrq	$123, %r9, %r9
# INTEL: shr	r9, r9, 123
0x62,0xd4,0xb4,0x18,0xc1,0xe9,0x7b

# ATT:   {nf}	shrq	$123, %r9, %r9
# INTEL: {nf}	shr	r9, r9, 123
0x62,0xd4,0xb4,0x1c,0xc1,0xe9,0x7b

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

# ATT:   {evex}	shrb	%bl
# INTEL: {evex}	shr	bl
0x62,0xf4,0x7c,0x08,0xd0,0xeb

# ATT:   {nf}	shrb	%bl
# INTEL: {nf}	shr	bl
0x62,0xf4,0x7c,0x0c,0xd0,0xeb

# ATT:   shrb	%bl, %bl
# INTEL: shr	bl, bl
0x62,0xf4,0x64,0x18,0xd0,0xeb

# ATT:   {nf}	shrb	%bl, %bl
# INTEL: {nf}	shr	bl, bl
0x62,0xf4,0x64,0x1c,0xd0,0xeb

# ATT:   {evex}	shrb	%cl, %bl
# INTEL: {evex}	shr	bl, cl
0x62,0xf4,0x7c,0x08,0xd2,0xeb

# ATT:   {nf}	shrb	%cl, %bl
# INTEL: {nf}	shr	bl, cl
0x62,0xf4,0x7c,0x0c,0xd2,0xeb

# ATT:   shrb	%cl, %bl, %bl
# INTEL: shr	bl, bl, cl
0x62,0xf4,0x64,0x18,0xd2,0xeb

# ATT:   {nf}	shrb	%cl, %bl, %bl
# INTEL: {nf}	shr	bl, bl, cl
0x62,0xf4,0x64,0x1c,0xd2,0xeb

# ATT:   {evex}	shrw	%cl, %dx
# INTEL: {evex}	shr	dx, cl
0x62,0xf4,0x7d,0x08,0xd3,0xea

# ATT:   {nf}	shrw	%cl, %dx
# INTEL: {nf}	shr	dx, cl
0x62,0xf4,0x7d,0x0c,0xd3,0xea

# ATT:   shrw	%cl, %dx, %dx
# INTEL: shr	dx, dx, cl
0x62,0xf4,0x6d,0x18,0xd3,0xea

# ATT:   {nf}	shrw	%cl, %dx, %dx
# INTEL: {nf}	shr	dx, dx, cl
0x62,0xf4,0x6d,0x1c,0xd3,0xea

# ATT:   {evex}	shrl	%cl, %ecx
# INTEL: {evex}	shr	ecx, cl
0x62,0xf4,0x7c,0x08,0xd3,0xe9

# ATT:   {nf}	shrl	%cl, %ecx
# INTEL: {nf}	shr	ecx, cl
0x62,0xf4,0x7c,0x0c,0xd3,0xe9

# ATT:   shrl	%cl, %ecx, %ecx
# INTEL: shr	ecx, ecx, cl
0x62,0xf4,0x74,0x18,0xd3,0xe9

# ATT:   {nf}	shrl	%cl, %ecx, %ecx
# INTEL: {nf}	shr	ecx, ecx, cl
0x62,0xf4,0x74,0x1c,0xd3,0xe9

# ATT:   {evex}	shrq	%cl, %r9
# INTEL: {evex}	shr	r9, cl
0x62,0xd4,0xfc,0x08,0xd3,0xe9

# ATT:   {nf}	shrq	%cl, %r9
# INTEL: {nf}	shr	r9, cl
0x62,0xd4,0xfc,0x0c,0xd3,0xe9

# ATT:   shrq	%cl, %r9, %r9
# INTEL: shr	r9, r9, cl
0x62,0xd4,0xb4,0x18,0xd3,0xe9

# ATT:   {nf}	shrq	%cl, %r9, %r9
# INTEL: {nf}	shr	r9, r9, cl
0x62,0xd4,0xb4,0x1c,0xd3,0xe9

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

# ATT:   {evex}	shrw	%dx
# INTEL: {evex}	shr	dx
0x62,0xf4,0x7d,0x08,0xd1,0xea

# ATT:   {nf}	shrw	%dx
# INTEL: {nf}	shr	dx
0x62,0xf4,0x7d,0x0c,0xd1,0xea

# ATT:   shrw	%dx, %dx
# INTEL: shr	dx, dx
0x62,0xf4,0x6d,0x18,0xd1,0xea

# ATT:   {nf}	shrw	%dx, %dx
# INTEL: {nf}	shr	dx, dx
0x62,0xf4,0x6d,0x1c,0xd1,0xea

# ATT:   {evex}	shrl	%ecx
# INTEL: {evex}	shr	ecx
0x62,0xf4,0x7c,0x08,0xd1,0xe9

# ATT:   {nf}	shrl	%ecx
# INTEL: {nf}	shr	ecx
0x62,0xf4,0x7c,0x0c,0xd1,0xe9

# ATT:   shrl	%ecx, %ecx
# INTEL: shr	ecx, ecx
0x62,0xf4,0x74,0x18,0xd1,0xe9

# ATT:   {nf}	shrl	%ecx, %ecx
# INTEL: {nf}	shr	ecx, ecx
0x62,0xf4,0x74,0x1c,0xd1,0xe9

# ATT:   {evex}	shrq	%r9
# INTEL: {evex}	shr	r9
0x62,0xd4,0xfc,0x08,0xd1,0xe9

# ATT:   {nf}	shrq	%r9
# INTEL: {nf}	shr	r9
0x62,0xd4,0xfc,0x0c,0xd1,0xe9

# ATT:   shrq	%r9, %r9
# INTEL: shr	r9, r9
0x62,0xd4,0xb4,0x18,0xd1,0xe9

# ATT:   {nf}	shrq	%r9, %r9
# INTEL: {nf}	shr	r9, r9
0x62,0xd4,0xb4,0x1c,0xd1,0xe9

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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