[llvm] ac23cf7 - [COST][NFC]Add a test for non-power-2 shuffles, NFC.
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 28 09:08:42 PDT 2022
Author: Alexey Bataev
Date: 2022-04-28T09:08:28-07:00
New Revision: ac23cf738ad6573c1b6b5749005bac44c0c25f67
URL: https://github.com/llvm/llvm-project/commit/ac23cf738ad6573c1b6b5749005bac44c0c25f67
DIFF: https://github.com/llvm/llvm-project/commit/ac23cf738ad6573c1b6b5749005bac44c0c25f67.diff
LOG: [COST][NFC]Add a test for non-power-2 shuffles, NFC.
Added:
llvm/test/Analysis/CostModel/X86/shuffle-non-pow-2.ll
Modified:
Removed:
################################################################################
diff --git a/llvm/test/Analysis/CostModel/X86/shuffle-non-pow-2.ll b/llvm/test/Analysis/CostModel/X86/shuffle-non-pow-2.ll
new file mode 100644
index 0000000000000..e0f36bee7e906
--- /dev/null
+++ b/llvm/test/Analysis/CostModel/X86/shuffle-non-pow-2.ll
@@ -0,0 +1,13 @@
+; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py
+; RUN: opt < %s -mtriple=x86_64-apple-darwin -passes="print<cost-model>" 2>&1 -disable-output -mattr=+sse2 | FileCheck %s
+
+define void @test() {
+; CHECK-LABEL: 'test'
+; CHECK-NEXT: Cost Model: Found an estimated cost of 32 for instruction: %matins.2.2 = shufflevector <9 x double> undef, <9 x double> undef, <9 x i32> <i32 0, i32 3, i32 6, i32 1, i32 4, i32 7, i32 2, i32 5, i32 8>
+; CHECK-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void
+;
+entry:
+ %matins.2.2 = shufflevector <9 x double> undef, <9 x double> undef, <9 x i32> <i32 0, i32 3, i32 6, i32 1, i32 4, i32 7, i32 2, i32 5, i32 8>
+ ret void
+}
+
More information about the llvm-commits
mailing list