aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/GlobalOpt/iterate.llx
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/GlobalOpt/iterate.llx')
-rw-r--r--test/Transforms/GlobalOpt/iterate.llx15
1 files changed, 8 insertions, 7 deletions
diff --git a/test/Transforms/GlobalOpt/iterate.llx b/test/Transforms/GlobalOpt/iterate.llx
index e4e59c6..d764c5d 100644
--- a/test/Transforms/GlobalOpt/iterate.llx
+++ b/test/Transforms/GlobalOpt/iterate.llx
@@ -1,10 +1,11 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -globalopt | llvm-dis | not grep %G
+; RUN: llvm-as < %s | opt -globalopt | llvm-dis | not grep %G
-%G = internal global int 0
-%H = internal global { int* } { int* %G }
+@G = internal global i32 0 ; <i32*> [#uses=1]
+@H = internal global { i32* } { i32* @G } ; <{ i32* }*> [#uses=1]
-int %loadg() {
- %G = load int** getelementptr ({int*}* %H, int 0, uint 0)
- %GV = load int* %G
- ret int %GV
+define i32 @loadg() {
+ %G = load i32** getelementptr ({ i32* }* @H, i32 0, i32 0) ; <i32*> [#uses=1]
+ %GV = load i32* %G ; <i32> [#uses=1]
+ ret i32 %GV
}
+