[llvm] 794649f - [MCA][X86] Add missing knotw test
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 11 07:37:13 PST 2022
Author: Simon Pilgrim
Date: 2022-12-11T15:36:06Z
New Revision: 794649f3178b99f802ce17877af7c7f345a65dd6
URL: https://github.com/llvm/llvm-project/commit/794649f3178b99f802ce17877af7c7f345a65dd6
DIFF: https://github.com/llvm/llvm-project/commit/794649f3178b99f802ce17877af7c7f345a65dd6.diff
LOG: [MCA][X86] Add missing knotw test
Added:
Modified:
llvm/test/tools/llvm-mca/X86/Generic/resources-avx512.s
llvm/test/tools/llvm-mca/X86/IceLakeServer/resources-avx512.s
llvm/test/tools/llvm-mca/X86/SkylakeServer/resources-avx512.s
Removed:
################################################################################
diff --git a/llvm/test/tools/llvm-mca/X86/Generic/resources-avx512.s b/llvm/test/tools/llvm-mca/X86/Generic/resources-avx512.s
index 668434d68449..5b9b8cd6bb5f 100644
--- a/llvm/test/tools/llvm-mca/X86/Generic/resources-avx512.s
+++ b/llvm/test/tools/llvm-mca/X86/Generic/resources-avx512.s
@@ -3,6 +3,7 @@
kandw %k0, %k1, %k2
kandnw %k0, %k1, %k2
+knotw %k0, %k2
korw %k0, %k1, %k2
kxnorw %k0, %k1, %k2
kxorw %k0, %k1, %k2
@@ -1016,6 +1017,7 @@ vunpcklps (%rax){1to16}, %zmm17, %zmm19 {z}{k1}
# CHECK: [1] [2] [3] [4] [5] [6] Instructions:
# CHECK-NEXT: 1 1 0.33 kandw %k0, %k1, %k2
# CHECK-NEXT: 1 1 0.33 kandnw %k0, %k1, %k2
+# CHECK-NEXT: 1 1 0.33 knotw %k0, %k2
# CHECK-NEXT: 1 1 0.33 korw %k0, %k1, %k2
# CHECK-NEXT: 1 1 0.33 kxnorw %k0, %k1, %k2
# CHECK-NEXT: 1 1 0.33 kxorw %k0, %k1, %k2
@@ -1911,12 +1913,13 @@ vunpcklps (%rax){1to16}, %zmm17, %zmm19 {z}{k1}
# CHECK: Resource pressure per iteration:
# CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6.0] [6.1]
-# CHECK-NEXT: - 1506.00 169.67 306.67 16.00 521.67 281.50 281.50
+# CHECK-NEXT: - 1506.00 170.00 307.00 16.00 522.00 281.50 281.50
# CHECK: Resource pressure by instruction:
# CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6.0] [6.1] Instructions:
# CHECK-NEXT: - - 0.33 0.33 - 0.33 - - kandw %k0, %k1, %k2
# CHECK-NEXT: - - 0.33 0.33 - 0.33 - - kandnw %k0, %k1, %k2
+# CHECK-NEXT: - - 0.33 0.33 - 0.33 - - knotw %k0, %k2
# CHECK-NEXT: - - 0.33 0.33 - 0.33 - - korw %k0, %k1, %k2
# CHECK-NEXT: - - 0.33 0.33 - 0.33 - - kxnorw %k0, %k1, %k2
# CHECK-NEXT: - - 0.33 0.33 - 0.33 - - kxorw %k0, %k1, %k2
diff --git a/llvm/test/tools/llvm-mca/X86/IceLakeServer/resources-avx512.s b/llvm/test/tools/llvm-mca/X86/IceLakeServer/resources-avx512.s
index 240c99b0b03e..a333d3764468 100644
--- a/llvm/test/tools/llvm-mca/X86/IceLakeServer/resources-avx512.s
+++ b/llvm/test/tools/llvm-mca/X86/IceLakeServer/resources-avx512.s
@@ -3,6 +3,7 @@
kandw %k0, %k1, %k2
kandnw %k0, %k1, %k2
+knotw %k0, %k2
korw %k0, %k1, %k2
kxnorw %k0, %k1, %k2
kxorw %k0, %k1, %k2
@@ -1016,6 +1017,7 @@ vunpcklps (%rax){1to16}, %zmm17, %zmm19 {z}{k1}
# CHECK: [1] [2] [3] [4] [5] [6] Instructions:
# CHECK-NEXT: 1 1 1.00 kandw %k0, %k1, %k2
# CHECK-NEXT: 1 1 1.00 kandnw %k0, %k1, %k2
+# CHECK-NEXT: 1 1 1.00 knotw %k0, %k2
# CHECK-NEXT: 1 1 1.00 korw %k0, %k1, %k2
# CHECK-NEXT: 1 1 1.00 kxnorw %k0, %k1, %k2
# CHECK-NEXT: 1 1 1.00 kxorw %k0, %k1, %k2
@@ -1915,12 +1917,13 @@ vunpcklps (%rax){1to16}, %zmm17, %zmm19 {z}{k1}
# CHECK: Resource pressure per iteration:
# CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11]
-# CHECK-NEXT: - 612.00 316.17 99.67 314.83 314.83 16.00 612.17 2.00 5.33 - -
+# CHECK-NEXT: - 612.00 317.17 99.67 314.83 314.83 16.00 612.17 2.00 5.33 - -
# CHECK: Resource pressure by instruction:
# CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] Instructions:
# CHECK-NEXT: - - 1.00 - - - - - - - - - kandw %k0, %k1, %k2
# CHECK-NEXT: - - 1.00 - - - - - - - - - kandnw %k0, %k1, %k2
+# CHECK-NEXT: - - 1.00 - - - - - - - - - knotw %k0, %k2
# CHECK-NEXT: - - 1.00 - - - - - - - - - korw %k0, %k1, %k2
# CHECK-NEXT: - - 1.00 - - - - - - - - - kxnorw %k0, %k1, %k2
# CHECK-NEXT: - - 1.00 - - - - - - - - - kxorw %k0, %k1, %k2
diff --git a/llvm/test/tools/llvm-mca/X86/SkylakeServer/resources-avx512.s b/llvm/test/tools/llvm-mca/X86/SkylakeServer/resources-avx512.s
index f31c9ac42f88..c17426a65405 100644
--- a/llvm/test/tools/llvm-mca/X86/SkylakeServer/resources-avx512.s
+++ b/llvm/test/tools/llvm-mca/X86/SkylakeServer/resources-avx512.s
@@ -3,6 +3,7 @@
kandw %k0, %k1, %k2
kandnw %k0, %k1, %k2
+knotw %k0, %k2
korw %k0, %k1, %k2
kxnorw %k0, %k1, %k2
kxorw %k0, %k1, %k2
@@ -1016,6 +1017,7 @@ vunpcklps (%rax){1to16}, %zmm17, %zmm19 {z}{k1}
# CHECK: [1] [2] [3] [4] [5] [6] Instructions:
# CHECK-NEXT: 1 1 1.00 kandw %k0, %k1, %k2
# CHECK-NEXT: 1 1 1.00 kandnw %k0, %k1, %k2
+# CHECK-NEXT: 1 1 1.00 knotw %k0, %k2
# CHECK-NEXT: 1 1 1.00 korw %k0, %k1, %k2
# CHECK-NEXT: 1 1 1.00 kxnorw %k0, %k1, %k2
# CHECK-NEXT: 1 1 1.00 kxorw %k0, %k1, %k2
@@ -1913,12 +1915,13 @@ vunpcklps (%rax){1to16}, %zmm17, %zmm19 {z}{k1}
# CHECK: Resource pressure per iteration:
# CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9]
-# CHECK-NEXT: - 612.00 311.67 99.67 314.83 314.83 16.00 616.67 2.00 5.33
+# CHECK-NEXT: - 612.00 312.67 99.67 314.83 314.83 16.00 616.67 2.00 5.33
# CHECK: Resource pressure by instruction:
# CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] Instructions:
# CHECK-NEXT: - - 1.00 - - - - - - - kandw %k0, %k1, %k2
# CHECK-NEXT: - - 1.00 - - - - - - - kandnw %k0, %k1, %k2
+# CHECK-NEXT: - - 1.00 - - - - - - - knotw %k0, %k2
# CHECK-NEXT: - - 1.00 - - - - - - - korw %k0, %k1, %k2
# CHECK-NEXT: - - 1.00 - - - - - - - kxnorw %k0, %k1, %k2
# CHECK-NEXT: - - 1.00 - - - - - - - kxorw %k0, %k1, %k2
More information about the llvm-commits
mailing list