From 794649f3178b99f802ce17877af7c7f345a65dd6 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Sun, 11 Dec 2022 15:35:58 +0000 Subject: [PATCH] [MCA][X86] Add missing knotw test --- llvm/test/tools/llvm-mca/X86/Generic/resources-avx512.s | 5 ++++- llvm/test/tools/llvm-mca/X86/IceLakeServer/resources-avx512.s | 5 ++++- llvm/test/tools/llvm-mca/X86/SkylakeServer/resources-avx512.s | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) 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 668434d..5b9b8cd 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 240c99b..a333d37 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 f31c9ac..c17426a 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 -- 2.7.4