2011-08-27 05:21:21 +08:00
|
|
|
; RUN: llc < %s -march=x86-64 -mcpu=core2 | FileCheck %s
|
|
|
|
|
|
|
|
; Basic 128-bit cmpxchg
|
|
|
|
define void @t1(i128* nocapture %p) nounwind ssp {
|
|
|
|
entry:
|
2012-01-05 08:43:34 +08:00
|
|
|
; CHECK: movl $1, %ebx
|
2015-05-27 02:35:10 +08:00
|
|
|
; CHECK: lock cmpxchg16b
|
2014-03-11 18:48:52 +08:00
|
|
|
%r = cmpxchg i128* %p, i128 0, i128 1 seq_cst seq_cst
|
2011-08-27 05:21:21 +08:00
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FIXME: Handle 128-bit atomicrmw/load atomic/store atomic
|