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
4 ; Basic 128-bit cmpxchg
5 define void @t1(i128* nocapture %p) nounwind ssp {
7 ; CHECK: # %bb.0: # %entry
8 ; CHECK-NEXT: pushq %rbx
9 ; CHECK-NEXT: movl $1, %ebx
10 ; CHECK-NEXT: xorl %eax, %eax
11 ; CHECK-NEXT: xorl %edx, %edx
12 ; CHECK-NEXT: xorl %ecx, %ecx
13 ; CHECK-NEXT: lock cmpxchg16b (%rdi)
14 ; CHECK-NEXT: popq %rbx
17 %r = cmpxchg i128* %p, i128 0, i128 1 seq_cst seq_cst
21 ; FIXME: Handle 128-bit atomicrmw/load atomic/store atomic