mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 04:33:05 +00:00
An additional atomic test; related to r137662.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137786 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
207634263c
commit
bfd5040ddc
@ -13,3 +13,12 @@ define i32* @test1(i8** %p) {
|
||||
ret i32* %r
|
||||
}
|
||||
|
||||
define i32 @test2(i32* %p) {
|
||||
; CHECK: define i32 @test2
|
||||
; CHECK: %x = load atomic i32* %p seq_cst, align 4
|
||||
; CHECK: shl i32 %x, 1
|
||||
%x = load atomic i32* %p seq_cst, align 4
|
||||
%y = load i32* %p, align 4
|
||||
%z = add i32 %x, %y
|
||||
ret i32 %z
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user