mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-23 14:25:07 +00:00
Add support for generating CMPXCHG16B on x86-64 for the cmpxchg IR instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138660 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
13
test/CodeGen/X86/cmpxchg16b.ll
Normal file
13
test/CodeGen/X86/cmpxchg16b.ll
Normal file
@@ -0,0 +1,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
|
||||
ret void
|
||||
}
|
||||
|
||||
; FIXME: Handle 128-bit atomicrmw/load atomic/store atomic
|
Reference in New Issue
Block a user