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

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

# CHECK: {nf}	bzhi	r10d, edx, ecx
# CHECK: encoding: [0x62,0x72,0x74,0x0c,0xf5,0xd2]
         {nf}	bzhi	r10d, edx, ecx

# CHECK: {evex}	bzhi	r10d, edx, ecx
# CHECK: encoding: [0x62,0x72,0x74,0x08,0xf5,0xd2]
         {evex}	bzhi	r10d, edx, ecx

# CHECK: {nf}	bzhi	edx, dword ptr [rax + 4*rbx + 123], ecx
# CHECK: encoding: [0x62,0xf2,0x74,0x0c,0xf5,0x54,0x98,0x7b]
         {nf}	bzhi	edx, dword ptr [rax + 4*rbx + 123], ecx

# CHECK: {evex}	bzhi	edx, dword ptr [rax + 4*rbx + 123], ecx
# CHECK: encoding: [0x62,0xf2,0x74,0x08,0xf5,0x54,0x98,0x7b]
         {evex}	bzhi	edx, dword ptr [rax + 4*rbx + 123], ecx

# CHECK: {nf}	bzhi	r11, r15, r9
# CHECK: encoding: [0x62,0x52,0xb4,0x0c,0xf5,0xdf]
         {nf}	bzhi	r11, r15, r9

# CHECK: {evex}	bzhi	r11, r15, r9
# CHECK: encoding: [0x62,0x52,0xb4,0x08,0xf5,0xdf]
         {evex}	bzhi	r11, r15, r9

# CHECK: {nf}	bzhi	r15, qword ptr [rax + 4*rbx + 123], r9
# CHECK: encoding: [0x62,0x72,0xb4,0x0c,0xf5,0x7c,0x98,0x7b]
         {nf}	bzhi	r15, qword ptr [rax + 4*rbx + 123], r9

# CHECK: {evex}	bzhi	r15, qword ptr [rax + 4*rbx + 123], r9
# CHECK: encoding: [0x62,0x72,0xb4,0x08,0xf5,0x7c,0x98,0x7b]
         {evex}	bzhi	r15, qword ptr [rax + 4*rbx + 123], r9

# CHECK: bzhi	r26d, r22d, r18d
# CHECK: encoding: [0x62,0x6a,0x6c,0x00,0xf5,0xd6]
         bzhi	r26d, r22d, r18d

# CHECK: bzhi	r22d, dword ptr [r28 + 4*r29 + 291], r18d
# CHECK: encoding: [0x62,0x8a,0x68,0x00,0xf5,0xb4,0xac,0x23,0x01,0x00,0x00]
         bzhi	r22d, dword ptr [r28 + 4*r29 + 291], r18d

# CHECK: bzhi	r27, r23, r19
# CHECK: encoding: [0x62,0x6a,0xe4,0x00,0xf5,0xdf]
         bzhi	r27, r23, r19

# CHECK: bzhi	r23, qword ptr [r28 + 4*r29 + 291], r19
# CHECK: encoding: [0x62,0x8a,0xe0,0x00,0xf5,0xbc,0xac,0x23,0x01,0x00,0x00]
         bzhi	r23, qword ptr [r28 + 4*r29 + 291], r19