aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/ScalarRepl/2003-10-29-ArrayProblem.ll
diff options
context:
space:
mode:
authorTanya Lattner <tonic@nondot.org>2008-03-18 04:14:37 +0000
committerTanya Lattner <tonic@nondot.org>2008-03-18 04:14:37 +0000
commit683283763f3293eaa6d7034b23fac0d1620e13c7 (patch)
treec7465502866ccb75db5360e7809bc2e567672ec6 /test/Transforms/ScalarRepl/2003-10-29-ArrayProblem.ll
parentf04d8d1593d0eedf5b9deaab48462dd88fefab93 (diff)
downloadexternal_llvm-683283763f3293eaa6d7034b23fac0d1620e13c7.zip
external_llvm-683283763f3293eaa6d7034b23fac0d1620e13c7.tar.gz
external_llvm-683283763f3293eaa6d7034b23fac0d1620e13c7.tar.bz2
Upgrade tests to not use llvm-upgrade.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48484 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/ScalarRepl/2003-10-29-ArrayProblem.ll')
-rw-r--r--test/Transforms/ScalarRepl/2003-10-29-ArrayProblem.ll27
1 files changed, 14 insertions, 13 deletions
diff --git a/test/Transforms/ScalarRepl/2003-10-29-ArrayProblem.ll b/test/Transforms/ScalarRepl/2003-10-29-ArrayProblem.ll
index d945aeb..47b7035 100644
--- a/test/Transforms/ScalarRepl/2003-10-29-ArrayProblem.ll
+++ b/test/Transforms/ScalarRepl/2003-10-29-ArrayProblem.ll
@@ -1,15 +1,16 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -scalarrepl | llvm-dis | \
+; RUN: llvm-as < %s | opt -scalarrepl | llvm-dis | \
; RUN: grep alloca | grep \{
-implementation ; Functions:
-
-declare int %.callback_1(sbyte*)
-declare void %.iter_2(int (sbyte*)*, sbyte*)
-
-int %main() {
- %d = alloca { [80 x sbyte], int, uint }
- %tmp.0 = getelementptr { [80 x sbyte], int, uint }* %d, long 0, uint 2
- store uint 0, uint* %tmp.0
- %tmp.1 = getelementptr { [80 x sbyte], int, uint }* %d, long 0, uint 0, long 0
- call void %.iter_2( int (sbyte*)* %.callback_1, sbyte* %tmp.1 )
- ret int 0
+
+declare i32 @.callback_1(i8*)
+
+declare void @.iter_2(i32 (i8*)*, i8*)
+
+define i32 @main() {
+ %d = alloca { [80 x i8], i32, i32 } ; <{ [80 x i8], i32, i32 }*> [#uses=2]
+ %tmp.0 = getelementptr { [80 x i8], i32, i32 }* %d, i64 0, i32 2 ; <i32*> [#uses=1]
+ store i32 0, i32* %tmp.0
+ %tmp.1 = getelementptr { [80 x i8], i32, i32 }* %d, i64 0, i32 0, i64 0 ; <i8*> [#uses=1]
+ call void @.iter_2( i32 (i8*)* @.callback_1, i8* %tmp.1 )
+ ret i32 0
}
+