mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-30 02:32:08 +00:00
aa26102db4
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125023 91177308-0d34-0410-b5e6-96231b3b80d8
18 lines
461 B
LLVM
18 lines
461 B
LLVM
; RUN: llc < %s -mtriple=armv7-apple-darwin | FileCheck %s -check-prefix=ARM
|
|
; RUN: llc < %s -mtriple=thumbv7-apple-darwin | FileCheck %s -check-prefix=T2
|
|
; rdar://8964854
|
|
|
|
define i8 @t(i8* %a, i8 %b, i8 %c) nounwind {
|
|
; ARM: t:
|
|
; ARM: ldrexb
|
|
; ARM: strexb
|
|
|
|
; T2: t:
|
|
; T2: ldrexb
|
|
; T2: strexb
|
|
%tmp0 = tail call i8 @llvm.atomic.cmp.swap.i8.p0i8(i8* %a, i8 %b, i8 %c)
|
|
ret i8 %tmp0
|
|
}
|
|
|
|
declare i8 @llvm.atomic.cmp.swap.i8.p0i8(i8* nocapture, i8, i8) nounwind
|