[llvm] 9ef28cf - VectorCombine: add test for crash #88796 (#91200)
via llvm-commits
llvm-commits at lists.llvm.org
Wed May 8 01:43:53 PDT 2024
Author: Ramkumar Ramachandra
Date: 2024-05-08T09:43:49+01:00
New Revision: 9ef28cf88ca6e45c3ecb75c649463f8797db68d2
URL: https://github.com/llvm/llvm-project/commit/9ef28cf88ca6e45c3ecb75c649463f8797db68d2
DIFF: https://github.com/llvm/llvm-project/commit/9ef28cf88ca6e45c3ecb75c649463f8797db68d2.diff
LOG: VectorCombine: add test for crash #88796 (#91200)
Added:
llvm/test/Transforms/VectorCombine/pr88796.ll
Modified:
Removed:
################################################################################
diff --git a/llvm/test/Transforms/VectorCombine/pr88796.ll b/llvm/test/Transforms/VectorCombine/pr88796.ll
new file mode 100644
index 0000000000000..d5cd52e11d39d
--- /dev/null
+++ b/llvm/test/Transforms/VectorCombine/pr88796.ll
@@ -0,0 +1,11 @@
+; REQUIRES: asserts
+; RUN: not --crash opt -passes=vector-combine -disable-output %s
+
+define i32 @test() {
+entry:
+ %0 = tail call i16 @llvm.vector.reduce.and.nxv8i16(<vscale x 8 x i16> trunc (<vscale x 8 x i32> shufflevector (<vscale x 8 x i32> insertelement (<vscale x 8 x i32> poison, i32 268435456, i64 0), <vscale x 8 x i32> poison, <vscale x 8 x i32> zeroinitializer) to <vscale x 8 x i16>))
+ ret i32 0
+}
+
+declare i16 @llvm.vector.reduce.and.nxv8i16(<vscale x 8 x i16>)
+
More information about the llvm-commits
mailing list