# RUN: llvm-mc --disassemble %s -triple=x86_64 | FileCheck %s --check-prefixes=ATT
# RUN: llvm-mc --disassemble %s -triple=x86_64 -x86-asm-syntax=intel --output-asm-variant=1 | FileCheck %s --check-prefixes=INTEL
# ATT: {nf} bextrl %ecx, %edx, %r10d
# INTEL: {nf} bextr r10d, edx, ecx
0x62,0x72,0x74,0x0c,0xf7,0xd2
# ATT: bextrl %ecx, %edx, %r10d
# INTEL: bextr r10d, edx, ecx
0x62,0x72,0x74,0x08,0xf7,0xd2
# ATT: {nf} bextrl %ecx, 123(%rax,%rbx,4), %edx
# INTEL: {nf} bextr edx, dword ptr [rax + 4*rbx + 123], ecx
0x62,0xf2,0x74,0x0c,0xf7,0x54,0x98,0x7b
# ATT: bextrl %ecx, 123(%rax,%rbx,4), %edx
# INTEL: bextr edx, dword ptr [rax + 4*rbx + 123], ecx
0x62,0xf2,0x74,0x08,0xf7,0x54,0x98,0x7b
# ATT: {nf} bextrq %r9, %r15, %r11
# INTEL: {nf} bextr r11, r15, r9
0x62,0x52,0xb4,0x0c,0xf7,0xdf
# ATT: bextrq %r9, %r15, %r11
# INTEL: bextr r11, r15, r9
0x62,0x52,0xb4,0x08,0xf7,0xdf
# ATT: {nf} bextrq %r9, 123(%rax,%rbx,4), %r15
# INTEL: {nf} bextr r15, qword ptr [rax + 4*rbx + 123], r9
0x62,0x72,0xb4,0x0c,0xf7,0x7c,0x98,0x7b
# ATT: bextrq %r9, 123(%rax,%rbx,4), %r15
# INTEL: bextr r15, qword ptr [rax + 4*rbx + 123], r9
0x62,0x72,0xb4,0x08,0xf7,0x7c,0x98,0x7b
# ATT: bextrl %r18d, %r22d, %r26d
# INTEL: bextr r26d, r22d, r18d
0x62,0x6a,0x6c,0x00,0xf7,0xd6
# ATT: bextrl %r18d, 291(%r28,%r29,4), %r22d
# INTEL: bextr r22d, dword ptr [r28 + 4*r29 + 291], r18d
0x62,0x8a,0x68,0x00,0xf7,0xb4,0xac,0x23,0x01,0x00,0x00
# ATT: bextrq %r19, %r23, %r27
# INTEL: bextr r27, r23, r19
0x62,0x6a,0xe4,0x00,0xf7,0xdf
# ATT: bextrq %r19, 291(%r28,%r29,4), %r23
# INTEL: bextr r23, qword ptr [r28 + 4*r29 + 291], r19
0x62,0x8a,0xe0,0x00,0xf7,0xbc,0xac,0x23,0x01,0x00,0x00