1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py 2; RUN: llc < %s -mtriple=x86_64-unknown- -mcpu=core2 | FileCheck %s --check-prefixes=CHECK 3 4; Basic 128-bit cmpxchg 5define void @t1(i128* nocapture %p) nounwind ssp { 6; CHECK-LABEL: t1: 7; CHECK: # %bb.0: # %entry 8; CHECK-NEXT: pushq %rbx 9; CHECK-NEXT: xorl %eax, %eax 10; CHECK-NEXT: xorl %edx, %edx 11; CHECK-NEXT: xorl %ecx, %ecx 12; CHECK-NEXT: movl $1, %ebx 13; CHECK-NEXT: lock cmpxchg16b (%rdi) 14; CHECK-NEXT: popq %rbx 15; CHECK-NEXT: retq 16entry: 17 %r = cmpxchg i128* %p, i128 0, i128 1 seq_cst seq_cst 18 ret void 19} 20 21; FIXME: Handle 128-bit atomicrmw/load atomic/store atomic 22