[llvm-commits] [llvm] r90293 - in /llvm/trunk/test/Transforms/InstCombine: sext-2.ll sext.ll
Chris Lattner
sabre at nondot.org
Tue Dec 1 21:34:35 PST 2009
Author: lattner
Date: Tue Dec 1 23:34:35 2009
New Revision: 90293
URL: http://llvm.org/viewvc/llvm-project?rev=90293&view=rev
Log:
merge sext-2 into sext.ll
Removed:
llvm/trunk/test/Transforms/InstCombine/sext-2.ll
Modified:
llvm/trunk/test/Transforms/InstCombine/sext.ll
Removed: llvm/trunk/test/Transforms/InstCombine/sext-2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/sext-2.ll?rev=90292&view=auto
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/sext-2.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/sext-2.ll (removed)
@@ -1,14 +0,0 @@
-; Checks to see that instcombine can handle a sign extension of i1
-
-; RUN: opt < %s -instcombine -S | FileCheck %s
-
-define void @test(<2 x i16> %srcA, <2 x i16> %srcB, <2 x i16>* %dst) nounwind {
-entry:
-; CHECK-NOT: tmask
-; CHECK: ret
- %cmp = icmp eq <2 x i16> %srcB, %srcA;
- %sext = sext <2 x i1> %cmp to <2 x i16>;
- %tmask = ashr <2 x i16> %sext, <i16 15, i16 15> ;
- store <2 x i16> %tmask, <2 x i16>* %dst;
- ret void
-}
Modified: llvm/trunk/test/Transforms/InstCombine/sext.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/sext.ll?rev=90293&r1=90292&r2=90293&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/sext.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/sext.ll Tue Dec 1 23:34:35 2009
@@ -114,3 +114,15 @@
; CHECK-NEXT: ret i32
}
+define void @test11(<2 x i16> %srcA, <2 x i16> %srcB, <2 x i16>* %dst) {
+ %cmp = icmp eq <2 x i16> %srcB, %srcA
+ %sext = sext <2 x i1> %cmp to <2 x i16>
+ %tmask = ashr <2 x i16> %sext, <i16 15, i16 15>
+ store <2 x i16> %tmask, <2 x i16>* %dst
+ ret void
+; CHECK: @test11
+; CHECK-NEXT: icmp eq
+; CHECK-NEXT: sext <2 x i1>
+; CHECK-NEXT: store <2 x i16>
+; CHECK-NEXT: ret
+}
More information about the llvm-commits
mailing list