summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/ScalarRepl/badarray.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
commit4e59897d3d14b9ba55e4eb8cc374892f8a85c2ed (patch)
tree6272c9c4a95d9567878ab5e6d40832576a8be28c /llvm/test/Transforms/ScalarRepl/badarray.ll
parentbaa370b37aaad6c32d04319d4bcee4cf170f4efc (diff)
downloadbcm5719-llvm-4e59897d3d14b9ba55e4eb8cc374892f8a85c2ed.tar.gz
bcm5719-llvm-4e59897d3d14b9ba55e4eb8cc374892f8a85c2ed.zip
Upgrade tests to not use llvm-upgrade.
llvm-svn: 48484
Diffstat (limited to 'llvm/test/Transforms/ScalarRepl/badarray.ll')
-rw-r--r--llvm/test/Transforms/ScalarRepl/badarray.ll17
1 files changed, 9 insertions, 8 deletions
diff --git a/llvm/test/Transforms/ScalarRepl/badarray.ll b/llvm/test/Transforms/ScalarRepl/badarray.ll
index f525255b41f..1e4714eae98 100644
--- a/llvm/test/Transforms/ScalarRepl/badarray.ll
+++ b/llvm/test/Transforms/ScalarRepl/badarray.ll
@@ -1,10 +1,11 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -scalarrepl -mem2reg | llvm-dis | grep alloca
+; RUN: llvm-as < %s | opt -scalarrepl -mem2reg | llvm-dis | grep alloca
-int %test() {
- %X = alloca [ 4 x int ]
- %Y = getelementptr [4x int]* %X, long 0, long 6 ; Off end of array!
- store int 0, int* %Y
-
- %Z = load int* %Y
- ret int %Z
+define i32 @test() {
+ %X = alloca [4 x i32] ; <[4 x i32]*> [#uses=1]
+ ; Off end of array!
+ %Y = getelementptr [4 x i32]* %X, i64 0, i64 6 ; <i32*> [#uses=2]
+ store i32 0, i32* %Y
+ %Z = load i32* %Y ; <i32> [#uses=1]
+ ret i32 %Z
}
+
OpenPOWER on IntegriCloud