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:
Eli Friedman 2011-08-16 23:29:17 +00:00
parent 207634263c
commit bfd5040ddc

View File

@ -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
}