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

// CHECK: cmpaexadd dword ptr [rip], ecx, eax
// CHECK: encoding: [0xc4,0xe2,0x79,0xe3,0x0d,0x00,0x00,0x00,0x00]
          cmpnbxadd dword ptr [rip], ecx, eax

// CHECK: cmpexadd dword ptr [rip], ecx, eax
// CHECK: encoding: [0xc4,0xe2,0x79,0xe4,0x0d,0x00,0x00,0x00,0x00]
          cmpzxadd dword ptr [rip], ecx, eax

// CHECK: cmpnexadd dword ptr [rip], ecx, eax
// CHECK: encoding: [0xc4,0xe2,0x79,0xe5,0x0d,0x00,0x00,0x00,0x00]
          cmpnzxadd dword ptr [rip], ecx, eax

// CHECK: cmpaxadd dword ptr [rip], ecx, eax
// CHECK: encoding: [0xc4,0xe2,0x79,0xe7,0x0d,0x00,0x00,0x00,0x00]
          cmpnbexadd dword ptr [rip], ecx, eax

// CHECK: cmpgexadd dword ptr [rip], ecx, eax
// CHECK: encoding: [0xc4,0xe2,0x79,0xed,0x0d,0x00,0x00,0x00,0x00]
          cmpnlxadd dword ptr [rip], ecx, eax

// CHECK: cmpgxadd dword ptr [rip], ecx, eax
// CHECK: encoding: [0xc4,0xe2,0x79,0xef,0x0d,0x00,0x00,0x00,0x00]
          cmpnlexadd dword ptr [rip], ecx, eax

// CHECK: cmpbxadd  dword ptr [rip], ecx, eax
// CHECK: encoding: [0xc4,0xe2,0x79,0xe2,0x0d,0x00,0x00,0x00,0x00]
          cmpcxadd  dword ptr [rip], ecx, eax

// CHECK: cmpbxadd  dword ptr [rip], ecx, eax
// CHECK: encoding: [0xc4,0xe2,0x79,0xe2,0x0d,0x00,0x00,0x00,0x00]
          cmpnaexadd  dword ptr [rip], ecx, eax

// CHECK: cmpaexadd  dword ptr [rip], ecx, eax
// CHECK: encoding: [0xc4,0xe2,0x79,0xe3,0x0d,0x00,0x00,0x00,0x00]
          cmpncxadd  dword ptr [rip], ecx, eax

// CHECK: cmpbexadd  dword ptr [rip], ecx, eax
// CHECK: encoding: [0xc4,0xe2,0x79,0xe6,0x0d,0x00,0x00,0x00,0x00]
          cmpnaxadd  dword ptr [rip], ecx, eax

// CHECK: cmplexadd  dword ptr [rip], ecx, eax
// CHECK: encoding: [0xc4,0xe2,0x79,0xee,0x0d,0x00,0x00,0x00,0x00]
          cmpngxadd  dword ptr [rip], ecx, eax

// CHECK: cmppxadd  dword ptr [rip], ecx, eax
// CHECK: encoding: [0xc4,0xe2,0x79,0xea,0x0d,0x00,0x00,0x00,0x00]
          cmppexadd  dword ptr [rip], ecx, eax

// CHECK: cmpnpxadd  dword ptr [rip], ecx, eax
// CHECK: encoding: [0xc4,0xe2,0x79,0xeb,0x0d,0x00,0x00,0x00,0x00]
          cmppoxadd  dword ptr [rip], ecx, eax

// CHECK: cmplxadd  dword ptr [rip], ecx, eax
// CHECK: encoding: [0xc4,0xe2,0x79,0xec,0x0d,0x00,0x00,0x00,0x00]
          cmpngexadd  dword ptr [rip], ecx, eax
