# 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: cmpaxadd %ecx, %edx, 123(%rax,%rbx,4) # INTEL: cmpaxadd dword ptr [rax + 4*rbx + 123], edx, ecx 0x62,0xf2,0x75,0x08,0xe7,0x54,0x98,0x7b # ATT: cmpaxadd %r9, %r15, 123(%rax,%rbx,4) # INTEL: cmpaxadd qword ptr [rax + 4*rbx + 123], r15, r9 0x62,0x72,0xb5,0x08,0xe7,0x7c,0x98,0x7b # ATT: cmpaxadd %r18d, %r22d, 291(%r28,%r29,4) # INTEL: cmpaxadd dword ptr [r28 + 4*r29 + 291], r22d, r18d 0x62,0x8a,0x69,0x00,0xe7,0xb4,0xac,0x23,0x01,0x00,0x00 # ATT: cmpaxadd %r19, %r23, 291(%r28,%r29,4) # INTEL: cmpaxadd qword ptr [r28 + 4*r29 + 291], r23, r19 0x62,0x8a,0xe1,0x00,0xe7,0xbc,0xac,0x23,0x01,0x00,0x00 # ATT: cmpbexadd %ecx, %edx, 123(%rax,%rbx,4) # INTEL: cmpbexadd dword ptr [rax + 4*rbx + 123], edx, ecx 0x62,0xf2,0x75,0x08,0xe6,0x54,0x98,0x7b # ATT: cmpbexadd %r9, %r15, 123(%rax,%rbx,4) # INTEL: cmpbexadd qword ptr [rax + 4*rbx + 123], r15, r9 0x62,0x72,0xb5,0x08,0xe6,0x7c,0x98,0x7b # ATT: cmpbexadd %r18d, %r22d, 291(%r28,%r29,4) # INTEL: cmpbexadd dword ptr [r28 + 4*r29 + 291], r22d, r18d 0x62,0x8a,0x69,0x00,0xe6,0xb4,0xac,0x23,0x01,0x00,0x00 # ATT: cmpbexadd %r19, %r23, 291(%r28,%r29,4) # INTEL: cmpbexadd qword ptr [r28 + 4*r29 + 291], r23, r19 0x62,0x8a,0xe1,0x00,0xe6,0xbc,0xac,0x23,0x01,0x00,0x00 # ATT: cmpbxadd %ecx, %edx, 123(%rax,%rbx,4) # INTEL: cmpbxadd dword ptr [rax + 4*rbx + 123], edx, ecx 0x62,0xf2,0x75,0x08,0xe2,0x54,0x98,0x7b # ATT: cmpbxadd %r9, %r15, 123(%rax,%rbx,4) # INTEL: cmpbxadd qword ptr [rax + 4*rbx + 123], r15, r9 0x62,0x72,0xb5,0x08,0xe2,0x7c,0x98,0x7b # ATT: cmpbxadd %r18d, %r22d, 291(%r28,%r29,4) # INTEL: cmpbxadd dword ptr [r28 + 4*r29 + 291], r22d, r18d 0x62,0x8a,0x69,0x00,0xe2,0xb4,0xac,0x23,0x01,0x00,0x00 # ATT: cmpbxadd %r19, %r23, 291(%r28,%r29,4) # INTEL: cmpbxadd qword ptr [r28 + 4*r29 + 291], r23, r19 0x62,0x8a,0xe1,0x00,0xe2,0xbc,0xac,0x23,0x01,0x00,0x00 # ATT: cmpexadd %ecx, %edx, 123(%rax,%rbx,4) # INTEL: cmpexadd dword ptr [rax + 4*rbx + 123], edx, ecx 0x62,0xf2,0x75,0x08,0xe4,0x54,0x98,0x7b # ATT: cmpexadd %r9, %r15, 123(%rax,%rbx,4) # INTEL: cmpexadd qword ptr [rax + 4*rbx + 123], r15, r9 0x62,0x72,0xb5,0x08,0xe4,0x7c,0x98,0x7b # ATT: cmpexadd %r18d, %r22d, 291(%r28,%r29,4) # INTEL: cmpexadd dword ptr [r28 + 4*r29 + 291], r22d, r18d 0x62,0x8a,0x69,0x00,0xe4,0xb4,0xac,0x23,0x01,0x00,0x00 # ATT: cmpexadd %r19, %r23, 291(%r28,%r29,4) # INTEL: cmpexadd qword ptr [r28 + 4*r29 + 291], r23, r19 0x62,0x8a,0xe1,0x00,0xe4,0xbc,0xac,0x23,0x01,0x00,0x00 # ATT: cmpgexadd %ecx, %edx, 123(%rax,%rbx,4) # INTEL: cmpgexadd dword ptr [rax + 4*rbx + 123], edx, ecx 0x62,0xf2,0x75,0x08,0xed,0x54,0x98,0x7b # ATT: cmpgexadd %r9, %r15, 123(%rax,%rbx,4) # INTEL: cmpgexadd qword ptr [rax + 4*rbx + 123], r15, r9 0x62,0x72,0xb5,0x08,0xed,0x7c,0x98,0x7b # ATT: cmpgexadd %r18d, %r22d, 291(%r28,%r29,4) # INTEL: cmpgexadd dword ptr [r28 + 4*r29 + 291], r22d, r18d 0x62,0x8a,0x69,0x00,0xed,0xb4,0xac,0x23,0x01,0x00,0x00 # ATT: cmpgexadd %r19, %r23, 291(%r28,%r29,4) # INTEL: cmpgexadd qword ptr [r28 + 4*r29 + 291], r23, r19 0x62,0x8a,0xe1,0x00,0xed,0xbc,0xac,0x23,0x01,0x00,0x00 # ATT: cmpgxadd %ecx, %edx, 123(%rax,%rbx,4) # INTEL: cmpgxadd dword ptr [rax + 4*rbx + 123], edx, ecx 0x62,0xf2,0x75,0x08,0xef,0x54,0x98,0x7b # ATT: cmpgxadd %r9, %r15, 123(%rax,%rbx,4) # INTEL: cmpgxadd qword ptr [rax + 4*rbx + 123], r15, r9 0x62,0x72,0xb5,0x08,0xef,0x7c,0x98,0x7b # ATT: cmpgxadd %r18d, %r22d, 291(%r28,%r29,4) # INTEL: cmpgxadd dword ptr [r28 + 4*r29 + 291], r22d, r18d 0x62,0x8a,0x69,0x00,0xef,0xb4,0xac,0x23,0x01,0x00,0x00 # ATT: cmpgxadd %r19, %r23, 291(%r28,%r29,4) # INTEL: cmpgxadd qword ptr [r28 + 4*r29 + 291], r23, r19 0x62,0x8a,0xe1,0x00,0xef,0xbc,0xac,0x23,0x01,0x00,0x00 # ATT: cmplexadd %ecx, %edx, 123(%rax,%rbx,4) # INTEL: cmplexadd dword ptr [rax + 4*rbx + 123], edx, ecx 0x62,0xf2,0x75,0x08,0xee,0x54,0x98,0x7b # ATT: cmplexadd %r9, %r15, 123(%rax,%rbx,4) # INTEL: cmplexadd qword ptr [rax + 4*rbx + 123], r15, r9 0x62,0x72,0xb5,0x08,0xee,0x7c,0x98,0x7b # ATT: cmplexadd %r18d, %r22d, 291(%r28,%r29,4) # INTEL: cmplexadd dword ptr [r28 + 4*r29 + 291], r22d, r18d 0x62,0x8a,0x69,0x00,0xee,0xb4,0xac,0x23,0x01,0x00,0x00 # ATT: cmplexadd %r19, %r23, 291(%r28,%r29,4) # INTEL: cmplexadd qword ptr [r28 + 4*r29 + 291], r23, r19 0x62,0x8a,0xe1,0x00,0xee,0xbc,0xac,0x23,0x01,0x00,0x00 # ATT: cmplxadd %ecx, %edx, 123(%rax,%rbx,4) # INTEL: cmplxadd dword ptr [rax + 4*rbx + 123], edx, ecx 0x62,0xf2,0x75,0x08,0xec,0x54,0x98,0x7b # ATT: cmplxadd %r9, %r15, 123(%rax,%rbx,4) # INTEL: cmplxadd qword ptr [rax + 4*rbx + 123], r15, r9 0x62,0x72,0xb5,0x08,0xec,0x7c,0x98,0x7b # ATT: cmplxadd %r18d, %r22d, 291(%r28,%r29,4) # INTEL: cmplxadd dword ptr [r28 + 4*r29 + 291], r22d, r18d 0x62,0x8a,0x69,0x00,0xec,0xb4,0xac,0x23,0x01,0x00,0x00 # ATT: cmplxadd %r19, %r23, 291(%r28,%r29,4) # INTEL: cmplxadd qword ptr [r28 + 4*r29 + 291], r23, r19 0x62,0x8a,0xe1,0x00,0xec,0xbc,0xac,0x23,0x01,0x00,0x00 # ATT: cmpnexadd %ecx, %edx, 123(%rax,%rbx,4) # INTEL: cmpnexadd dword ptr [rax + 4*rbx + 123], edx, ecx 0x62,0xf2,0x75,0x08,0xe5,0x54,0x98,0x7b # ATT: cmpnexadd %r9, %r15, 123(%rax,%rbx,4) # INTEL: cmpnexadd qword ptr [rax + 4*rbx + 123], r15, r9 0x62,0x72,0xb5,0x08,0xe5,0x7c,0x98,0x7b # ATT: cmpnexadd %r18d, %r22d, 291(%r28,%r29,4) # INTEL: cmpnexadd dword ptr [r28 + 4*r29 + 291], r22d, r18d 0x62,0x8a,0x69,0x00,0xe5,0xb4,0xac,0x23,0x01,0x00,0x00 # ATT: cmpnexadd %r19, %r23, 291(%r28,%r29,4) # INTEL: cmpnexadd qword ptr [r28 + 4*r29 + 291], r23, r19 0x62,0x8a,0xe1,0x00,0xe5,0xbc,0xac,0x23,0x01,0x00,0x00 # ATT: cmpnoxadd %ecx, %edx, 123(%rax,%rbx,4) # INTEL: cmpnoxadd dword ptr [rax + 4*rbx + 123], edx, ecx 0x62,0xf2,0x75,0x08,0xe1,0x54,0x98,0x7b # ATT: cmpnoxadd %r9, %r15, 123(%rax,%rbx,4) # INTEL: cmpnoxadd qword ptr [rax + 4*rbx + 123], r15, r9 0x62,0x72,0xb5,0x08,0xe1,0x7c,0x98,0x7b # ATT: cmpnoxadd %r18d, %r22d, 291(%r28,%r29,4) # INTEL: cmpnoxadd dword ptr [r28 + 4*r29 + 291], r22d, r18d 0x62,0x8a,0x69,0x00,0xe1,0xb4,0xac,0x23,0x01,0x00,0x00 # ATT: cmpnoxadd %r19, %r23, 291(%r28,%r29,4) # INTEL: cmpnoxadd qword ptr [r28 + 4*r29 + 291], r23, r19 0x62,0x8a,0xe1,0x00,0xe1,0xbc,0xac,0x23,0x01,0x00,0x00 # ATT: cmpnpxadd %ecx, %edx, 123(%rax,%rbx,4) # INTEL: cmpnpxadd dword ptr [rax + 4*rbx + 123], edx, ecx 0x62,0xf2,0x75,0x08,0xeb,0x54,0x98,0x7b # ATT: cmpnpxadd %r9, %r15, 123(%rax,%rbx,4) # INTEL: cmpnpxadd qword ptr [rax + 4*rbx + 123], r15, r9 0x62,0x72,0xb5,0x08,0xeb,0x7c,0x98,0x7b # ATT: cmpnpxadd %r18d, %r22d, 291(%r28,%r29,4) # INTEL: cmpnpxadd dword ptr [r28 + 4*r29 + 291], r22d, r18d 0x62,0x8a,0x69,0x00,0xeb,0xb4,0xac,0x23,0x01,0x00,0x00 # ATT: cmpnpxadd %r19, %r23, 291(%r28,%r29,4) # INTEL: cmpnpxadd qword ptr [r28 + 4*r29 + 291], r23, r19 0x62,0x8a,0xe1,0x00,0xeb,0xbc,0xac,0x23,0x01,0x00,0x00 # ATT: cmpnsxadd %ecx, %edx, 123(%rax,%rbx,4) # INTEL: cmpnsxadd dword ptr [rax + 4*rbx + 123], edx, ecx 0x62,0xf2,0x75,0x08,0xe9,0x54,0x98,0x7b # ATT: cmpnsxadd %r9, %r15, 123(%rax,%rbx,4) # INTEL: cmpnsxadd qword ptr [rax + 4*rbx + 123], r15, r9 0x62,0x72,0xb5,0x08,0xe9,0x7c,0x98,0x7b # ATT: cmpnsxadd %r18d, %r22d, 291(%r28,%r29,4) # INTEL: cmpnsxadd dword ptr [r28 + 4*r29 + 291], r22d, r18d 0x62,0x8a,0x69,0x00,0xe9,0xb4,0xac,0x23,0x01,0x00,0x00 # ATT: cmpnsxadd %r19, %r23, 291(%r28,%r29,4) # INTEL: cmpnsxadd qword ptr [r28 + 4*r29 + 291], r23, r19 0x62,0x8a,0xe1,0x00,0xe9,0xbc,0xac,0x23,0x01,0x00,0x00 # ATT: cmpoxadd %ecx, %edx, 123(%rax,%rbx,4) # INTEL: cmpoxadd dword ptr [rax + 4*rbx + 123], edx, ecx 0x62,0xf2,0x75,0x08,0xe0,0x54,0x98,0x7b # ATT: cmpoxadd %r9, %r15, 123(%rax,%rbx,4) # INTEL: cmpoxadd qword ptr [rax + 4*rbx + 123], r15, r9 0x62,0x72,0xb5,0x08,0xe0,0x7c,0x98,0x7b # ATT: cmpoxadd %r18d, %r22d, 291(%r28,%r29,4) # INTEL: cmpoxadd dword ptr [r28 + 4*r29 + 291], r22d, r18d 0x62,0x8a,0x69,0x00,0xe0,0xb4,0xac,0x23,0x01,0x00,0x00 # ATT: cmpoxadd %r19, %r23, 291(%r28,%r29,4) # INTEL: cmpoxadd qword ptr [r28 + 4*r29 + 291], r23, r19 0x62,0x8a,0xe1,0x00,0xe0,0xbc,0xac,0x23,0x01,0x00,0x00 # ATT: cmppxadd %ecx, %edx, 123(%rax,%rbx,4) # INTEL: cmppxadd dword ptr [rax + 4*rbx + 123], edx, ecx 0x62,0xf2,0x75,0x08,0xea,0x54,0x98,0x7b # ATT: cmppxadd %r9, %r15, 123(%rax,%rbx,4) # INTEL: cmppxadd qword ptr [rax + 4*rbx + 123], r15, r9 0x62,0x72,0xb5,0x08,0xea,0x7c,0x98,0x7b # ATT: cmppxadd %r18d, %r22d, 291(%r28,%r29,4) # INTEL: cmppxadd dword ptr [r28 + 4*r29 + 291], r22d, r18d 0x62,0x8a,0x69,0x00,0xea,0xb4,0xac,0x23,0x01,0x00,0x00 # ATT: cmppxadd %r19, %r23, 291(%r28,%r29,4) # INTEL: cmppxadd qword ptr [r28 + 4*r29 + 291], r23, r19 0x62,0x8a,0xe1,0x00,0xea,0xbc,0xac,0x23,0x01,0x00,0x00 # ATT: cmpsxadd %ecx, %edx, 123(%rax,%rbx,4) # INTEL: cmpsxadd dword ptr [rax + 4*rbx + 123], edx, ecx 0x62,0xf2,0x75,0x08,0xe8,0x54,0x98,0x7b # ATT: cmpsxadd %r9, %r15, 123(%rax,%rbx,4) # INTEL: cmpsxadd qword ptr [rax + 4*rbx + 123], r15, r9 0x62,0x72,0xb5,0x08,0xe8,0x7c,0x98,0x7b # ATT: cmpsxadd %r18d, %r22d, 291(%r28,%r29,4) # INTEL: cmpsxadd dword ptr [r28 + 4*r29 + 291], r22d, r18d 0x62,0x8a,0x69,0x00,0xe8,0xb4,0xac,0x23,0x01,0x00,0x00 # ATT: cmpsxadd %r19, %r23, 291(%r28,%r29,4) # INTEL: cmpsxadd qword ptr [r28 + 4*r29 + 291], r23, r19 0x62,0x8a,0xe1,0x00,0xe8,0xbc,0xac,0x23,0x01,0x00,0x00