[llvm-commits] CVS: llvm/test/Transforms/InstCombine/cast_ptr.ll

Andrew Lenharth alenhar2 at cs.uiuc.edu
Thu Feb 22 07:18:02 PST 2007



Changes in directory llvm/test/Transforms/InstCombine:

cast_ptr.ll updated: 1.3 -> 1.4
---
Log message:

missed cast elimination

---
Diffs of the changes:  (+7 -1)

 cast_ptr.ll |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletion(-)


Index: llvm/test/Transforms/InstCombine/cast_ptr.ll
diff -u llvm/test/Transforms/InstCombine/cast_ptr.ll:1.3 llvm/test/Transforms/InstCombine/cast_ptr.ll:1.4
--- llvm/test/Transforms/InstCombine/cast_ptr.ll:1.3	Fri Dec  1 22:23:09 2006
+++ llvm/test/Transforms/InstCombine/cast_ptr.ll	Thu Feb 22 09:17:45 2007
@@ -1,6 +1,6 @@
 ; Tests to make sure elimination of casts is working correctly
 ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine -disable-output &&
-; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | not grep '\([sz]ext\)\|\(trunc\)'
+; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | not grep '\([sz]ext\)\|\(trunc\)|\(ptrtoint\)'
 
 target pointersize = 32
 
@@ -13,3 +13,9 @@
 	ret sbyte* %tv
 }
 
+bool %test2(sbyte* %a, sbyte* %b) {
+%tmpa = cast sbyte* %a to uint
+%tmpb = cast sbyte* %b to uint
+%r = seteq uint %tmpa, %tmpb
+ret bool %r
+}






More information about the llvm-commits mailing list