[llvm-commits] [llvm] r92781 - /llvm/trunk/test/Transforms/InstCombine/cast-sext-zext.ll
Chris Lattner
sabre at nondot.org
Tue Jan 5 13:43:08 PST 2010
Author: lattner
Date: Tue Jan 5 15:43:08 2010
New Revision: 92781
URL: http://llvm.org/viewvc/llvm-project?rev=92781&view=rev
Log:
another example.
Modified:
llvm/trunk/test/Transforms/InstCombine/cast-sext-zext.ll
Modified: llvm/trunk/test/Transforms/InstCombine/cast-sext-zext.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/cast-sext-zext.ll?rev=92781&r1=92780&r2=92781&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/cast-sext-zext.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/cast-sext-zext.ll Tue Jan 5 15:43:08 2010
@@ -11,3 +11,11 @@
%4 = load i16* %3, align 2
ret i16 %4
}
+
+define zeroext i64 @t2(i8 zeroext %on_off) nounwind readonly {
+entry:
+ %0 = zext i8 %on_off to i32
+ %1 = add i32 %0, -1
+ %2 = sext i32 %1 to i64
+ ret i64 %2 ;; Should be (add (zext i8 -> i64), -1)
+}
More information about the llvm-commits
mailing list