summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2016-06-05 17:32:58 +0000
committerSanjay Patel <spatel@rotateright.com>2016-06-05 17:32:58 +0000
commit54d7010627ca4b3a6f9ec1bb5311269388bf0442 (patch)
tree76ea88d1aedfccb08cdfd718e1adba70d8e9d223 /llvm/test
parent51dc83c0520d4b17de7f0eecb4f2fda9543ca7b5 (diff)
downloadbcm5719-llvm-54d7010627ca4b3a6f9ec1bb5311269388bf0442.tar.gz
bcm5719-llvm-54d7010627ca4b3a6f9ec1bb5311269388bf0442.zip
add tests to show missing vector transforms
llvm-svn: 271842
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/Transforms/InstCombine/set.ll20
1 files changed, 20 insertions, 0 deletions
diff --git a/llvm/test/Transforms/InstCombine/set.ll b/llvm/test/Transforms/InstCombine/set.ll
index 17dbdecc164..23d1a63e497 100644
--- a/llvm/test/Transforms/InstCombine/set.ll
+++ b/llvm/test/Transforms/InstCombine/set.ll
@@ -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
OpenPOWER on IntegriCloud