aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-02-18 06:11:00 +0000
committerChris Lattner <sabre@nondot.org>2008-02-18 06:11:00 +0000
commit52000c508d927a28db7e07008f6ed76a50c071ff (patch)
tree50069cf1c11e43092df36bf7bce0d8231873c625
parent616cc034d25fd6f51fa9d7876dafcf7fb39babca (diff)
downloadexternal_llvm-52000c508d927a28db7e07008f6ed76a50c071ff.zip
external_llvm-52000c508d927a28db7e07008f6ed76a50c071ff.tar.gz
external_llvm-52000c508d927a28db7e07008f6ed76a50c071ff.tar.bz2
upgrade this test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47257 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/Transforms/InstCombine/stacksaverestore.ll22
1 files changed, 11 insertions, 11 deletions
diff --git a/test/Transforms/InstCombine/stacksaverestore.ll b/test/Transforms/InstCombine/stacksaverestore.ll
index f5a0c76..29001a0 100644
--- a/test/Transforms/InstCombine/stacksaverestore.ll
+++ b/test/Transforms/InstCombine/stacksaverestore.ll
@@ -1,19 +1,19 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | not grep {call.*stackrestore}
+; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep {call.*stackrestore}
;; Test that llvm.stackrestore is removed when possible.
-
-int* %test1(uint %P) {
- %tmp = call sbyte* %llvm.stacksave()
- call void %llvm.stackrestore(sbyte* %tmp) ;; not restoring anything
- %A = alloca int, uint %P
- ret int* %A
+define i32* @test1(i32 %P) {
+ %tmp = call i8* @llvm.stacksave( )
+ call void @llvm.stackrestore( i8* %tmp ) ;; not restoring anything
+ %A = alloca i32, i32 %P
+ ret i32* %A
}
-void %test2(sbyte* %X) {
- call void %llvm.stackrestore(sbyte* %X) ;; no allocas before return.
+define void @test2(i8* %X) {
+ call void @llvm.stackrestore( i8* %X ) ;; no allocas before return.
ret void
}
-declare sbyte* %llvm.stacksave()
+declare i8* @llvm.stacksave()
+
+declare void @llvm.stackrestore(i8*)
-declare void %llvm.stackrestore(sbyte*)