[llvm] 9ab016f - [VectorCombine] Add test coverage for #86068
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 10 02:01:07 PST 2024
Author: Simon Pilgrim
Date: 2024-12-10T10:00:56Z
New Revision: 9ab016f1ee009f207b99b11b4aaf004730701f29
URL: https://github.com/llvm/llvm-project/commit/9ab016f1ee009f207b99b11b4aaf004730701f29
DIFF: https://github.com/llvm/llvm-project/commit/9ab016f1ee009f207b99b11b4aaf004730701f29.diff
LOG: [VectorCombine] Add test coverage for #86068
Added:
Modified:
llvm/test/Transforms/VectorCombine/X86/shuffle-of-shuffles.ll
Removed:
################################################################################
diff --git a/llvm/test/Transforms/VectorCombine/X86/shuffle-of-shuffles.ll b/llvm/test/Transforms/VectorCombine/X86/shuffle-of-shuffles.ll
index 57df36a3874a9c..6f5843294ce83f 100644
--- a/llvm/test/Transforms/VectorCombine/X86/shuffle-of-shuffles.ll
+++ b/llvm/test/Transforms/VectorCombine/X86/shuffle-of-shuffles.ll
@@ -63,3 +63,15 @@ define <4 x double> @blend_broadcasts_v4f64(ptr %p0, ptr %p1) {
%blend = shufflevector <4 x double> %bcst0, <4 x double> %bcst1, <4 x i32> <i32 0, i32 5, i32 6, i32 3>
ret <4 x double> %blend
}
+
+define <2 x float> @PR86068(<2 x float> %a0, <2 x float> %a1) {
+; CHECK-LABEL: define <2 x float> @PR86068(
+; CHECK-SAME: <2 x float> [[A0:%.*]], <2 x float> [[A1:%.*]]) #[[ATTR0]] {
+; CHECK-NEXT: [[S1:%.*]] = shufflevector <2 x float> [[A1]], <2 x float> poison, <2 x i32> <i32 1, i32 poison>
+; CHECK-NEXT: [[S2:%.*]] = shufflevector <2 x float> [[S1]], <2 x float> [[A0]], <2 x i32> <i32 0, i32 3>
+; CHECK-NEXT: ret <2 x float> [[S2]]
+;
+ %s1 = shufflevector <2 x float> %a1, <2 x float> poison, <2 x i32> <i32 1, i32 poison>
+ %s2 = shufflevector <2 x float> %s1, <2 x float> %a0, <2 x i32> <i32 0, i32 3>
+ ret <2 x float> %s2
+}
More information about the llvm-commits
mailing list