mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-05 02:07:16 +00:00
merge a test into ipsccp-basic. running llvm-ld to get one pass is... bad.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85945 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4de099d8ca
commit
db70f8a442
@ -1,20 +0,0 @@
|
||||
; RUN: llvm-as < %s > %t.bc
|
||||
; RUN: llvm-ld %t.bc -o %t.sh
|
||||
; PR2612
|
||||
|
||||
@current_foo = internal global { } zeroinitializer
|
||||
|
||||
define i32 @main(...) {
|
||||
entry:
|
||||
%retval = alloca i32 ; <i32*> [#uses=2]
|
||||
store i32 0, i32* %retval
|
||||
%local_foo = alloca { } ; <{ }*> [#uses=1]
|
||||
load { }* @current_foo ; <{ }>:0 [#uses=1]
|
||||
store { } %0, { }* %local_foo
|
||||
br label %return
|
||||
|
||||
return: ; preds = %entry
|
||||
load i32* %retval ; <i32>:1 [#uses=1]
|
||||
ret i32 %1
|
||||
}
|
||||
|
@ -189,9 +189,19 @@ define void @test8b(i32* %P) {
|
||||
%X = call {} @test8a(i32 5, i32* %P)
|
||||
ret void
|
||||
; CHECK: define void @test8b
|
||||
; CHECK-NEXT: call {} @test8a
|
||||
; CHECK-NEXT: call { } @test8a
|
||||
; CHECK-NEXT: ret void
|
||||
}
|
||||
|
||||
;;======================== test9
|
||||
|
||||
@test9g = internal global { } zeroinitializer
|
||||
|
||||
define void @test9() {
|
||||
entry:
|
||||
%local_foo = alloca { }
|
||||
load { }* @current_foo
|
||||
store { } %0, { }* %local_foo
|
||||
ret void
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user