[llvm-commits] [llvm] r92777 - in /llvm/trunk/test/Transforms/InstCombine: cast-sext-zext.ll setcc-cast-cast.ll
Chris Lattner
sabre at nondot.org
Tue Jan 5 13:37:45 PST 2010
Author: lattner
Date: Tue Jan 5 15:37:44 2010
New Revision: 92777
URL: http://llvm.org/viewvc/llvm-project?rev=92777&view=rev
Log:
remove a useless negative test, add a rdar # to an xfail that I'm working on.
Removed:
llvm/trunk/test/Transforms/InstCombine/setcc-cast-cast.ll
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=92777&r1=92776&r2=92777&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:37:44 2010
@@ -1,5 +1,6 @@
; RUN: opt < %s -instcombine -S | not grep sext
; XFAIL: *
+; rdar://6598839
define zeroext i16 @t(i8 zeroext %on_off, i16* nocapture %puls) nounwind readonly {
entry:
Removed: llvm/trunk/test/Transforms/InstCombine/setcc-cast-cast.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/setcc-cast-cast.ll?rev=92776&view=auto
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/setcc-cast-cast.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/setcc-cast-cast.ll (removed)
@@ -1,46 +0,0 @@
-; This test case was reduced from MultiSource/Applications/hbd. It makes sure
-; that folding doesn't happen in case a zext is applied where a sext should have
-; been when a setcc is used with two casts.
-; RUN: opt < %s -instcombine -S | \
-; RUN: not grep {br i1 false}
-; END.
-
-define i32 @bug(i8 %inbuff) {
-entry:
- %tmp = bitcast i8 %inbuff to i8 ; <i8> [#uses=1]
- %tmp.upgrd.1 = sext i8 %tmp to i32 ; <i32> [#uses=3]
- %tmp.upgrd.2 = icmp eq i32 %tmp.upgrd.1, 1 ; <i1> [#uses=1]
- br i1 %tmp.upgrd.2, label %cond_true, label %cond_next
-
-cond_true: ; preds = %entry
- br label %bb
-
-cond_next: ; preds = %entry
- %tmp3 = icmp eq i32 %tmp.upgrd.1, -1 ; <i1> [#uses=1]
- br i1 %tmp3, label %cond_true4, label %cond_next5
-
-cond_true4: ; preds = %cond_next
- br label %bb
-
-cond_next5: ; preds = %cond_next
- %tmp7 = icmp sgt i32 %tmp.upgrd.1, 1 ; <i1> [#uses=1]
- br i1 %tmp7, label %cond_true8, label %cond_false
-
-cond_true8: ; preds = %cond_next5
- br label %cond_next9
-
-cond_false: ; preds = %cond_next5
- br label %cond_next9
-
-cond_next9: ; preds = %cond_false, %cond_true8
- %iftmp.1.0 = phi i32 [ 42, %cond_true8 ], [ 23, %cond_false ] ; <i32> [#uses=1]
- br label %return
-
-bb: ; preds = %cond_true4, %cond_true
- br label %return
-
-return: ; preds = %bb, %cond_next9
- %retval.0 = phi i32 [ 17, %bb ], [ %iftmp.1.0, %cond_next9 ] ; <i32> [#uses=1]
- ret i32 %retval.0
-}
-
More information about the llvm-commits
mailing list