aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/GlobalOpt/load-store-global.llx
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/GlobalOpt/load-store-global.llx')
-rw-r--r--test/Transforms/GlobalOpt/load-store-global.llx17
1 files changed, 9 insertions, 8 deletions
diff --git a/test/Transforms/GlobalOpt/load-store-global.llx b/test/Transforms/GlobalOpt/load-store-global.llx
index bf5d3a2..d89d226 100644
--- a/test/Transforms/GlobalOpt/load-store-global.llx
+++ b/test/Transforms/GlobalOpt/load-store-global.llx
@@ -1,14 +1,15 @@
-; 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 17
+@G = internal global i32 17 ; <i32*> [#uses=3]
-void %foo() {
- %V = load int* %G
- store int %V, int* %G ;; Doesn't change the value
+define void @foo() {
+ %V = load i32* @G ; <i32> [#uses=1]
+ store i32 %V, i32* @G
ret void
}
-int %bar() {
- %X = load int* %G
- ret int %X
+
+define i32 @bar() {
+ %X = load i32* @G ; <i32> [#uses=1]
+ ret i32 %X
}