mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-22 07:32:48 +00:00
ca396e391e
The syntax for "cmpxchg" should now look something like: cmpxchg i32* %addr, i32 42, i32 3 acquire monotonic where the second ordering argument gives the required semantics in the case that no exchange takes place. It should be no stronger than the first ordering constraint and cannot be either "release" or "acq_rel" (since no store will have taken place). rdar://problem/15996804 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203559 91177308-0d34-0410-b5e6-96231b3b80d8
16 lines
427 B
LLVM
16 lines
427 B
LLVM
; RUN: llc < %s -mtriple=armv7-apple-darwin -verify-machineinstrs | FileCheck %s -check-prefix=ARM
|
|
; RUN: llc < %s -mtriple=thumbv7-apple-darwin -verify-machineinstrs | FileCheck %s -check-prefix=T2
|
|
; rdar://8964854
|
|
|
|
define i8 @t(i8* %a, i8 %b, i8 %c) nounwind {
|
|
; ARM-LABEL: t:
|
|
; ARM: ldrexb
|
|
; ARM: strexb
|
|
|
|
; T2-LABEL: t:
|
|
; T2: ldrexb
|
|
; T2: strexb
|
|
%tmp0 = cmpxchg i8* %a, i8 %b, i8 %c monotonic monotonic
|
|
ret i8 %tmp0
|
|
}
|