[llvm] b0d25ff - [ConstantFold][SVE][NFC] Add test for select instruction in scalable vector.
Huihui Zhang via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 30 10:56:33 PST 2020
Author: Huihui Zhang
Date: 2020-01-30T10:56:12-08:00
New Revision: b0d25fff9b84ccb711c1a86ea0e606aa98c72a20
URL: https://github.com/llvm/llvm-project/commit/b0d25fff9b84ccb711c1a86ea0e606aa98c72a20
DIFF: https://github.com/llvm/llvm-project/commit/b0d25fff9b84ccb711c1a86ea0e606aa98c72a20.diff
LOG: [ConstantFold][SVE][NFC] Add test for select instruction in scalable vector.
Side notes from D73669, no need to guard the iteration on vectors, as
it is explicitly looking for a ConstantVector/ConstantDataVector, which
is not expected to be scalable at the moment. So, add the test only.
Added:
Modified:
llvm/test/Analysis/ConstantFolding/vscale.ll
Removed:
################################################################################
diff --git a/llvm/test/Analysis/ConstantFolding/vscale.ll b/llvm/test/Analysis/ConstantFolding/vscale.ll
index cd5bc4434037..180e469a3555 100644
--- a/llvm/test/Analysis/ConstantFolding/vscale.ll
+++ b/llvm/test/Analysis/ConstantFolding/vscale.ll
@@ -164,3 +164,15 @@ define <vscale x 4 x i32> @xor() {
%r = xor <vscale x 4 x i32> undef, undef
ret <vscale x 4 x i32> %r
}
+
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+;; Other Operations
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+
+define <vscale x 4 x i32> @select() {
+; CHECK-LABEL: @select(
+; CHECK-NEXT: ret <vscale x 4 x i32> undef
+;
+ %r = select <vscale x 4 x i1> undef, <vscale x 4 x i32> zeroinitializer, <vscale x 4 x i32> undef
+ ret <vscale x 4 x i32> %r
+}
More information about the llvm-commits
mailing list