[llvm-commits] CVS: llvm/test/Transforms/InstCombine/cast2.ll getelementptr.ll
Chris Lattner
sabre at nondot.org
Sun Mar 25 13:43:01 PDT 2007
Changes in directory llvm/test/Transforms/InstCombine:
cast2.ll updated: 1.1 -> 1.2
getelementptr.ll updated: 1.19 -> 1.20
---
Log message:
new testcase
---
Diffs of the changes: (+8 -1)
cast2.ll | 6 ++++++
getelementptr.ll | 3 ++-
2 files changed, 8 insertions(+), 1 deletion(-)
Index: llvm/test/Transforms/InstCombine/cast2.ll
diff -u llvm/test/Transforms/InstCombine/cast2.ll:1.1 llvm/test/Transforms/InstCombine/cast2.ll:1.2
--- llvm/test/Transforms/InstCombine/cast2.ll:1.1 Fri Mar 2 23:24:06 2007
+++ llvm/test/Transforms/InstCombine/cast2.ll Sun Mar 25 15:42:40 2007
@@ -20,5 +20,11 @@
ret i16 %tmp.upgrd.3
}
+; PR1263
+define i32* @test3(i32* %tmp1) {
+ %tmp64 = bitcast i32* %tmp1 to { i32 }* ; <{ i32 }*> [#uses=1]
+ %tmp65 = getelementptr { i32 }* %tmp64, i32 0, i32 0 ; <i32*> [#uses=1]
+ ret i32* %tmp65
+}
Index: llvm/test/Transforms/InstCombine/getelementptr.ll
diff -u llvm/test/Transforms/InstCombine/getelementptr.ll:1.19 llvm/test/Transforms/InstCombine/getelementptr.ll:1.20
--- llvm/test/Transforms/InstCombine/getelementptr.ll:1.19 Fri Dec 1 22:23:09 2006
+++ llvm/test/Transforms/InstCombine/getelementptr.ll Sun Mar 25 15:42:40 2007
@@ -1,6 +1,7 @@
; The %A getelementptr instruction should be eliminated here
-; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | grep -v '%B' | not grep getelementptr
+; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | grep -v '%B' | not grep getelementptr &&
+; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | grep foo1
%Global = constant [10 x sbyte] c"helloworld"
More information about the llvm-commits
mailing list