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