[llvm] 80ce01c - [MCA][X86] Add missing PSHUFLW from AVX512BWVL tests
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 10 06:05:54 PST 2021
Author: Simon Pilgrim
Date: 2021-12-10T14:02:37Z
New Revision: 80ce01c6fddfca0567e7edd1667a3babb82e9a7b
URL: https://github.com/llvm/llvm-project/commit/80ce01c6fddfca0567e7edd1667a3babb82e9a7b
DIFF: https://github.com/llvm/llvm-project/commit/80ce01c6fddfca0567e7edd1667a3babb82e9a7b.diff
LOG: [MCA][X86] Add missing PSHUFLW from AVX512BWVL tests
Added:
Modified:
llvm/test/tools/llvm-mca/X86/Generic/resources-avx512bwvl.s
llvm/test/tools/llvm-mca/X86/IceLakeServer/resources-avx512bwvl.s
llvm/test/tools/llvm-mca/X86/SkylakeServer/resources-avx512bwvl.s
Removed:
################################################################################
diff --git a/llvm/test/tools/llvm-mca/X86/Generic/resources-avx512bwvl.s b/llvm/test/tools/llvm-mca/X86/Generic/resources-avx512bwvl.s
index e68b0b280d65a..459b994734f94 100644
--- a/llvm/test/tools/llvm-mca/X86/Generic/resources-avx512bwvl.s
+++ b/llvm/test/tools/llvm-mca/X86/Generic/resources-avx512bwvl.s
@@ -179,6 +179,20 @@ vpshufhw $0, (%rax), %ymm19 {k1}
vpshufhw $0, %ymm16, %ymm19 {z}{k1}
vpshufhw $0, (%rax), %ymm19 {z}{k1}
+vpshuflw $0, %xmm16, %xmm19
+vpshuflw $0, (%rax), %xmm19
+vpshuflw $0, %xmm16, %xmm19 {k1}
+vpshuflw $0, (%rax), %xmm19 {k1}
+vpshuflw $0, %xmm16, %xmm19 {z}{k1}
+vpshuflw $0, (%rax), %xmm19 {z}{k1}
+
+vpshuflw $0, %ymm16, %ymm19
+vpshuflw $0, (%rax), %ymm19
+vpshuflw $0, %ymm16, %ymm19 {k1}
+vpshuflw $0, (%rax), %ymm19 {k1}
+vpshuflw $0, %ymm16, %ymm19 {z}{k1}
+vpshuflw $0, (%rax), %ymm19 {z}{k1}
+
vpsubb %xmm16, %xmm17, %xmm19
vpsubb (%rax), %xmm17, %xmm19
vpsubb %xmm16, %xmm17, %xmm19 {k1}
@@ -472,6 +486,18 @@ vpmovw2m %ymm0, %k0
# CHECK-NEXT: 2 8 1.00 * vpshufhw $0, (%rax), %ymm19 {%k1}
# CHECK-NEXT: 1 1 1.00 vpshufhw $0, %ymm16, %ymm19 {%k1} {z}
# CHECK-NEXT: 2 8 1.00 * vpshufhw $0, (%rax), %ymm19 {%k1} {z}
+# CHECK-NEXT: 1 1 0.50 vpshuflw $0, %xmm16, %xmm19
+# CHECK-NEXT: 2 7 0.50 * vpshuflw $0, (%rax), %xmm19
+# CHECK-NEXT: 1 1 0.50 vpshuflw $0, %xmm16, %xmm19 {%k1}
+# CHECK-NEXT: 2 7 0.50 * vpshuflw $0, (%rax), %xmm19 {%k1}
+# CHECK-NEXT: 1 1 0.50 vpshuflw $0, %xmm16, %xmm19 {%k1} {z}
+# CHECK-NEXT: 2 7 0.50 * vpshuflw $0, (%rax), %xmm19 {%k1} {z}
+# CHECK-NEXT: 1 1 1.00 vpshuflw $0, %ymm16, %ymm19
+# CHECK-NEXT: 2 8 1.00 * vpshuflw $0, (%rax), %ymm19
+# CHECK-NEXT: 1 1 1.00 vpshuflw $0, %ymm16, %ymm19 {%k1}
+# CHECK-NEXT: 2 8 1.00 * vpshuflw $0, (%rax), %ymm19 {%k1}
+# CHECK-NEXT: 1 1 1.00 vpshuflw $0, %ymm16, %ymm19 {%k1} {z}
+# CHECK-NEXT: 2 8 1.00 * vpshuflw $0, (%rax), %ymm19 {%k1} {z}
# CHECK-NEXT: 1 1 0.50 vpsubb %xmm16, %xmm17, %xmm19
# CHECK-NEXT: 2 7 0.50 * vpsubb (%rax), %xmm17, %xmm19
# CHECK-NEXT: 1 1 0.50 vpsubb %xmm16, %xmm17, %xmm19 {%k1}
@@ -597,7 +623,7 @@ vpmovw2m %ymm0, %k0
# CHECK: Resource pressure per iteration:
# CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6.0] [6.1]
-# CHECK-NEXT: - - 13.33 102.33 - 144.33 63.00 63.00
+# CHECK-NEXT: - - 13.33 105.33 - 153.33 66.00 66.00
# CHECK: Resource pressure by instruction:
# CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6.0] [6.1] Instructions:
@@ -749,6 +775,18 @@ vpmovw2m %ymm0, %k0
# CHECK-NEXT: - - - - - 1.00 0.50 0.50 vpshufhw $0, (%rax), %ymm19 {%k1}
# CHECK-NEXT: - - - - - 1.00 - - vpshufhw $0, %ymm16, %ymm19 {%k1} {z}
# CHECK-NEXT: - - - - - 1.00 0.50 0.50 vpshufhw $0, (%rax), %ymm19 {%k1} {z}
+# CHECK-NEXT: - - - 0.50 - 0.50 - - vpshuflw $0, %xmm16, %xmm19
+# CHECK-NEXT: - - - 0.50 - 0.50 0.50 0.50 vpshuflw $0, (%rax), %xmm19
+# CHECK-NEXT: - - - 0.50 - 0.50 - - vpshuflw $0, %xmm16, %xmm19 {%k1}
+# CHECK-NEXT: - - - 0.50 - 0.50 0.50 0.50 vpshuflw $0, (%rax), %xmm19 {%k1}
+# CHECK-NEXT: - - - 0.50 - 0.50 - - vpshuflw $0, %xmm16, %xmm19 {%k1} {z}
+# CHECK-NEXT: - - - 0.50 - 0.50 0.50 0.50 vpshuflw $0, (%rax), %xmm19 {%k1} {z}
+# CHECK-NEXT: - - - - - 1.00 - - vpshuflw $0, %ymm16, %ymm19
+# CHECK-NEXT: - - - - - 1.00 0.50 0.50 vpshuflw $0, (%rax), %ymm19
+# CHECK-NEXT: - - - - - 1.00 - - vpshuflw $0, %ymm16, %ymm19 {%k1}
+# CHECK-NEXT: - - - - - 1.00 0.50 0.50 vpshuflw $0, (%rax), %ymm19 {%k1}
+# CHECK-NEXT: - - - - - 1.00 - - vpshuflw $0, %ymm16, %ymm19 {%k1} {z}
+# CHECK-NEXT: - - - - - 1.00 0.50 0.50 vpshuflw $0, (%rax), %ymm19 {%k1} {z}
# CHECK-NEXT: - - - 0.50 - 0.50 - - vpsubb %xmm16, %xmm17, %xmm19
# CHECK-NEXT: - - - 0.50 - 0.50 0.50 0.50 vpsubb (%rax), %xmm17, %xmm19
# CHECK-NEXT: - - - 0.50 - 0.50 - - vpsubb %xmm16, %xmm17, %xmm19 {%k1}
diff --git a/llvm/test/tools/llvm-mca/X86/IceLakeServer/resources-avx512bwvl.s b/llvm/test/tools/llvm-mca/X86/IceLakeServer/resources-avx512bwvl.s
index 8df3f3aec4e4a..f66ad84f53545 100644
--- a/llvm/test/tools/llvm-mca/X86/IceLakeServer/resources-avx512bwvl.s
+++ b/llvm/test/tools/llvm-mca/X86/IceLakeServer/resources-avx512bwvl.s
@@ -179,6 +179,20 @@ vpshufhw $0, (%rax), %ymm19 {k1}
vpshufhw $0, %ymm16, %ymm19 {z}{k1}
vpshufhw $0, (%rax), %ymm19 {z}{k1}
+vpshuflw $0, %xmm16, %xmm19
+vpshuflw $0, (%rax), %xmm19
+vpshuflw $0, %xmm16, %xmm19 {k1}
+vpshuflw $0, (%rax), %xmm19 {k1}
+vpshuflw $0, %xmm16, %xmm19 {z}{k1}
+vpshuflw $0, (%rax), %xmm19 {z}{k1}
+
+vpshuflw $0, %ymm16, %ymm19
+vpshuflw $0, (%rax), %ymm19
+vpshuflw $0, %ymm16, %ymm19 {k1}
+vpshuflw $0, (%rax), %ymm19 {k1}
+vpshuflw $0, %ymm16, %ymm19 {z}{k1}
+vpshuflw $0, (%rax), %ymm19 {z}{k1}
+
vpsubb %xmm16, %xmm17, %xmm19
vpsubb (%rax), %xmm17, %xmm19
vpsubb %xmm16, %xmm17, %xmm19 {k1}
@@ -472,6 +486,18 @@ vpmovw2m %ymm0, %k0
# CHECK-NEXT: 2 8 1.00 * vpshufhw $0, (%rax), %ymm19 {%k1}
# CHECK-NEXT: 1 1 1.00 vpshufhw $0, %ymm16, %ymm19 {%k1} {z}
# CHECK-NEXT: 2 8 1.00 * vpshufhw $0, (%rax), %ymm19 {%k1} {z}
+# CHECK-NEXT: 1 1 1.00 vpshuflw $0, %xmm16, %xmm19
+# CHECK-NEXT: 2 7 1.00 * vpshuflw $0, (%rax), %xmm19
+# CHECK-NEXT: 1 1 1.00 vpshuflw $0, %xmm16, %xmm19 {%k1}
+# CHECK-NEXT: 2 7 1.00 * vpshuflw $0, (%rax), %xmm19 {%k1}
+# CHECK-NEXT: 1 1 1.00 vpshuflw $0, %xmm16, %xmm19 {%k1} {z}
+# CHECK-NEXT: 2 7 1.00 * vpshuflw $0, (%rax), %xmm19 {%k1} {z}
+# CHECK-NEXT: 1 1 1.00 vpshuflw $0, %ymm16, %ymm19
+# CHECK-NEXT: 2 8 1.00 * vpshuflw $0, (%rax), %ymm19
+# CHECK-NEXT: 1 1 1.00 vpshuflw $0, %ymm16, %ymm19 {%k1}
+# CHECK-NEXT: 2 8 1.00 * vpshuflw $0, (%rax), %ymm19 {%k1}
+# CHECK-NEXT: 1 1 1.00 vpshuflw $0, %ymm16, %ymm19 {%k1} {z}
+# CHECK-NEXT: 2 8 1.00 * vpshuflw $0, (%rax), %ymm19 {%k1} {z}
# CHECK-NEXT: 1 1 0.33 vpsubb %xmm16, %xmm17, %xmm19
# CHECK-NEXT: 2 7 0.50 * vpsubb (%rax), %xmm17, %xmm19
# CHECK-NEXT: 1 1 0.33 vpsubb %xmm16, %xmm17, %xmm19 {%k1}
@@ -601,7 +627,7 @@ vpmovw2m %ymm0, %k0
# CHECK: Resource pressure per iteration:
# CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11]
-# CHECK-NEXT: - - 33.00 29.00 63.00 63.00 - 209.00 1.00 - - -
+# CHECK-NEXT: - - 33.00 29.00 66.00 66.00 - 221.00 1.00 - - -
# CHECK: Resource pressure by instruction:
# CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] Instructions:
@@ -753,6 +779,18 @@ vpmovw2m %ymm0, %k0
# CHECK-NEXT: - - - - 0.50 0.50 - 1.00 - - - - vpshufhw $0, (%rax), %ymm19 {%k1}
# CHECK-NEXT: - - - - - - - 1.00 - - - - vpshufhw $0, %ymm16, %ymm19 {%k1} {z}
# CHECK-NEXT: - - - - 0.50 0.50 - 1.00 - - - - vpshufhw $0, (%rax), %ymm19 {%k1} {z}
+# CHECK-NEXT: - - - - - - - 1.00 - - - - vpshuflw $0, %xmm16, %xmm19
+# CHECK-NEXT: - - - - 0.50 0.50 - 1.00 - - - - vpshuflw $0, (%rax), %xmm19
+# CHECK-NEXT: - - - - - - - 1.00 - - - - vpshuflw $0, %xmm16, %xmm19 {%k1}
+# CHECK-NEXT: - - - - 0.50 0.50 - 1.00 - - - - vpshuflw $0, (%rax), %xmm19 {%k1}
+# CHECK-NEXT: - - - - - - - 1.00 - - - - vpshuflw $0, %xmm16, %xmm19 {%k1} {z}
+# CHECK-NEXT: - - - - 0.50 0.50 - 1.00 - - - - vpshuflw $0, (%rax), %xmm19 {%k1} {z}
+# CHECK-NEXT: - - - - - - - 1.00 - - - - vpshuflw $0, %ymm16, %ymm19
+# CHECK-NEXT: - - - - 0.50 0.50 - 1.00 - - - - vpshuflw $0, (%rax), %ymm19
+# CHECK-NEXT: - - - - - - - 1.00 - - - - vpshuflw $0, %ymm16, %ymm19 {%k1}
+# CHECK-NEXT: - - - - 0.50 0.50 - 1.00 - - - - vpshuflw $0, (%rax), %ymm19 {%k1}
+# CHECK-NEXT: - - - - - - - 1.00 - - - - vpshuflw $0, %ymm16, %ymm19 {%k1} {z}
+# CHECK-NEXT: - - - - 0.50 0.50 - 1.00 - - - - vpshuflw $0, (%rax), %ymm19 {%k1} {z}
# CHECK-NEXT: - - 0.33 0.33 - - - 0.33 - - - - vpsubb %xmm16, %xmm17, %xmm19
# CHECK-NEXT: - - 0.33 0.33 0.50 0.50 - 0.33 - - - - vpsubb (%rax), %xmm17, %xmm19
# CHECK-NEXT: - - 0.33 0.33 - - - 0.33 - - - - vpsubb %xmm16, %xmm17, %xmm19 {%k1}
diff --git a/llvm/test/tools/llvm-mca/X86/SkylakeServer/resources-avx512bwvl.s b/llvm/test/tools/llvm-mca/X86/SkylakeServer/resources-avx512bwvl.s
index e2c991fa11a19..5534212dd08af 100644
--- a/llvm/test/tools/llvm-mca/X86/SkylakeServer/resources-avx512bwvl.s
+++ b/llvm/test/tools/llvm-mca/X86/SkylakeServer/resources-avx512bwvl.s
@@ -179,6 +179,20 @@ vpshufhw $0, (%rax), %ymm19 {k1}
vpshufhw $0, %ymm16, %ymm19 {z}{k1}
vpshufhw $0, (%rax), %ymm19 {z}{k1}
+vpshuflw $0, %xmm16, %xmm19
+vpshuflw $0, (%rax), %xmm19
+vpshuflw $0, %xmm16, %xmm19 {k1}
+vpshuflw $0, (%rax), %xmm19 {k1}
+vpshuflw $0, %xmm16, %xmm19 {z}{k1}
+vpshuflw $0, (%rax), %xmm19 {z}{k1}
+
+vpshuflw $0, %ymm16, %ymm19
+vpshuflw $0, (%rax), %ymm19
+vpshuflw $0, %ymm16, %ymm19 {k1}
+vpshuflw $0, (%rax), %ymm19 {k1}
+vpshuflw $0, %ymm16, %ymm19 {z}{k1}
+vpshuflw $0, (%rax), %ymm19 {z}{k1}
+
vpsubb %xmm16, %xmm17, %xmm19
vpsubb (%rax), %xmm17, %xmm19
vpsubb %xmm16, %xmm17, %xmm19 {k1}
@@ -472,6 +486,18 @@ vpmovw2m %ymm0, %k0
# CHECK-NEXT: 2 8 1.00 * vpshufhw $0, (%rax), %ymm19 {%k1}
# CHECK-NEXT: 1 1 1.00 vpshufhw $0, %ymm16, %ymm19 {%k1} {z}
# CHECK-NEXT: 2 8 1.00 * vpshufhw $0, (%rax), %ymm19 {%k1} {z}
+# CHECK-NEXT: 1 1 1.00 vpshuflw $0, %xmm16, %xmm19
+# CHECK-NEXT: 2 7 1.00 * vpshuflw $0, (%rax), %xmm19
+# CHECK-NEXT: 1 1 1.00 vpshuflw $0, %xmm16, %xmm19 {%k1}
+# CHECK-NEXT: 2 7 1.00 * vpshuflw $0, (%rax), %xmm19 {%k1}
+# CHECK-NEXT: 1 1 1.00 vpshuflw $0, %xmm16, %xmm19 {%k1} {z}
+# CHECK-NEXT: 2 7 1.00 * vpshuflw $0, (%rax), %xmm19 {%k1} {z}
+# CHECK-NEXT: 1 1 1.00 vpshuflw $0, %ymm16, %ymm19
+# CHECK-NEXT: 2 8 1.00 * vpshuflw $0, (%rax), %ymm19
+# CHECK-NEXT: 1 1 1.00 vpshuflw $0, %ymm16, %ymm19 {%k1}
+# CHECK-NEXT: 2 8 1.00 * vpshuflw $0, (%rax), %ymm19 {%k1}
+# CHECK-NEXT: 1 1 1.00 vpshuflw $0, %ymm16, %ymm19 {%k1} {z}
+# CHECK-NEXT: 2 8 1.00 * vpshuflw $0, (%rax), %ymm19 {%k1} {z}
# CHECK-NEXT: 1 1 0.33 vpsubb %xmm16, %xmm17, %xmm19
# CHECK-NEXT: 2 7 0.50 * vpsubb (%rax), %xmm17, %xmm19
# CHECK-NEXT: 1 1 0.33 vpsubb %xmm16, %xmm17, %xmm19 {%k1}
@@ -599,7 +625,7 @@ vpmovw2m %ymm0, %k0
# CHECK: Resource pressure per iteration:
# CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9]
-# CHECK-NEXT: - - 33.00 29.00 63.00 63.00 - 209.00 1.00 -
+# CHECK-NEXT: - - 33.00 29.00 66.00 66.00 - 221.00 1.00 -
# CHECK: Resource pressure by instruction:
# CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] Instructions:
@@ -751,6 +777,18 @@ vpmovw2m %ymm0, %k0
# CHECK-NEXT: - - - - 0.50 0.50 - 1.00 - - vpshufhw $0, (%rax), %ymm19 {%k1}
# CHECK-NEXT: - - - - - - - 1.00 - - vpshufhw $0, %ymm16, %ymm19 {%k1} {z}
# CHECK-NEXT: - - - - 0.50 0.50 - 1.00 - - vpshufhw $0, (%rax), %ymm19 {%k1} {z}
+# CHECK-NEXT: - - - - - - - 1.00 - - vpshuflw $0, %xmm16, %xmm19
+# CHECK-NEXT: - - - - 0.50 0.50 - 1.00 - - vpshuflw $0, (%rax), %xmm19
+# CHECK-NEXT: - - - - - - - 1.00 - - vpshuflw $0, %xmm16, %xmm19 {%k1}
+# CHECK-NEXT: - - - - 0.50 0.50 - 1.00 - - vpshuflw $0, (%rax), %xmm19 {%k1}
+# CHECK-NEXT: - - - - - - - 1.00 - - vpshuflw $0, %xmm16, %xmm19 {%k1} {z}
+# CHECK-NEXT: - - - - 0.50 0.50 - 1.00 - - vpshuflw $0, (%rax), %xmm19 {%k1} {z}
+# CHECK-NEXT: - - - - - - - 1.00 - - vpshuflw $0, %ymm16, %ymm19
+# CHECK-NEXT: - - - - 0.50 0.50 - 1.00 - - vpshuflw $0, (%rax), %ymm19
+# CHECK-NEXT: - - - - - - - 1.00 - - vpshuflw $0, %ymm16, %ymm19 {%k1}
+# CHECK-NEXT: - - - - 0.50 0.50 - 1.00 - - vpshuflw $0, (%rax), %ymm19 {%k1}
+# CHECK-NEXT: - - - - - - - 1.00 - - vpshuflw $0, %ymm16, %ymm19 {%k1} {z}
+# CHECK-NEXT: - - - - 0.50 0.50 - 1.00 - - vpshuflw $0, (%rax), %ymm19 {%k1} {z}
# CHECK-NEXT: - - 0.33 0.33 - - - 0.33 - - vpsubb %xmm16, %xmm17, %xmm19
# CHECK-NEXT: - - 0.33 0.33 0.50 0.50 - 0.33 - - vpsubb (%rax), %xmm17, %xmm19
# CHECK-NEXT: - - 0.33 0.33 - - - 0.33 - - vpsubb %xmm16, %xmm17, %xmm19 {%k1}
More information about the llvm-commits
mailing list