[llvm] r271842 - add tests to show missing vector transforms
Sanjay Patel via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 5 10:32:59 PDT 2016
Author: spatel
Date: Sun Jun 5 12:32:58 2016
New Revision: 271842
URL: http://llvm.org/viewvc/llvm-project?rev=271842&view=rev
Log:
add tests to show missing vector transforms
Modified:
llvm/trunk/test/Transforms/InstCombine/set.ll
Modified: llvm/trunk/test/Transforms/InstCombine/set.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/set.ll?rev=271842&r1=271841&r2=271842&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/set.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/set.ll Sun Jun 5 12:32:58 2016
@@ -118,6 +118,16 @@ define i1 @test13(i1 %A, i1 %B) {
ret i1 %C
}
+; FIXME: Vectors should fold the same as scalars.
+define <2 x i1> @test13vec(<2 x i1> %A, <2 x i1> %B) {
+; CHECK-LABEL: @test13vec(
+; CHECK-NEXT: [[C:%.*]] = icmp uge <2 x i1> %A, %B
+; CHECK-NEXT: ret <2 x i1> [[C]]
+;
+ %C = icmp uge <2 x i1> %A, %B
+ ret <2 x i1> %C
+}
+
define i1 @test14(i1 %A, i1 %B) {
; CHECK-LABEL: @test14(
; CHECK-NEXT: [[CTMP:%.*]] = xor i1 %A, %B
@@ -128,6 +138,16 @@ define i1 @test14(i1 %A, i1 %B) {
ret i1 %C
}
+; FIXME: Vectors should fold the same as scalars.
+define <3 x i1> @test14vec(<3 x i1> %A, <3 x i1> %B) {
+; CHECK-LABEL: @test14vec(
+; CHECK-NEXT: [[C:%.*]] = icmp eq <3 x i1> %A, %B
+; CHECK-NEXT: ret <3 x i1> [[C]]
+;
+ %C = icmp eq <3 x i1> %A, %B
+ ret <3 x i1> %C
+}
+
define i1 @test16(i32 %A) {
; CHECK-LABEL: @test16(
; CHECK-NEXT: ret i1 false
More information about the llvm-commits
mailing list