aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/GlobalOpt/globalsra-partial.llx
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/GlobalOpt/globalsra-partial.llx')
-rw-r--r--test/Transforms/GlobalOpt/globalsra-partial.llx26
1 files changed, 13 insertions, 13 deletions
diff --git a/test/Transforms/GlobalOpt/globalsra-partial.llx b/test/Transforms/GlobalOpt/globalsra-partial.llx
index e060565..e52e7fe 100644
--- a/test/Transforms/GlobalOpt/globalsra-partial.llx
+++ b/test/Transforms/GlobalOpt/globalsra-partial.llx
@@ -1,23 +1,23 @@
; In this case, the global can only be broken up by one level.
-; RUN: llvm-upgrade < %s | llvm-as | opt -globalopt | llvm-dis | not grep 12345
+; RUN: llvm-as < %s | opt -globalopt | llvm-dis | not grep 12345
-%G = internal global { int, [4 x float] } zeroinitializer
+@G = internal global { i32, [4 x float] } zeroinitializer ; <{ i32, [4 x float] }*> [#uses=3]
-void %onlystore() {
- store int 12345, int* getelementptr ({ int, [4 x float] }* %G, int 0, uint 0)
- ret void
+define void @onlystore() {
+ store i32 12345, i32* getelementptr ({ i32, [4 x float] }* @G, i32 0, i32 0)
+ ret void
}
-void %storeinit(int %i) {
- %Ptr = getelementptr { int, [4 x float] }* %G, int 0, uint 1, int %i
- store float 1.0, float* %Ptr
- ret void
+define void @storeinit(i32 %i) {
+ %Ptr = getelementptr { i32, [4 x float] }* @G, i32 0, i32 1, i32 %i ; <float*> [#uses=1]
+ store float 1.000000e+00, float* %Ptr
+ ret void
}
-float %readval(int %i) {
- %Ptr = getelementptr { int, [4 x float] }* %G, int 0, uint 1, int %i
- %V = load float* %Ptr
- ret float %V
+define float @readval(i32 %i) {
+ %Ptr = getelementptr { i32, [4 x float] }* @G, i32 0, i32 1, i32 %i ; <float*> [#uses=1]
+ %V = load float* %Ptr ; <float> [#uses=1]
+ ret float %V
}