blob: 1d5bb85f8d20871fe88de5e66148f2cee1b79ee9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
; RUN: llc < %s -march=x86-64 -mcpu=core2 | FileCheck %s
; Basic 128-bit cmpxchg
define void @t1(i128* nocapture %p) nounwind ssp {
entry:
; CHECK: movl $1, %ebx
; CHECK: lock
; CHECK-NEXT: cmpxchg16b
%r = cmpxchg i128* %p, i128 0, i128 1 seq_cst seq_cst
ret void
}
; FIXME: Handle 128-bit atomicrmw/load atomic/store atomic
|