[llvm] r351842 - [llvm-mca][X86] Add VPOPCNTDQ tests
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 22 09:19:45 PST 2019
Author: rksimon
Date: Tue Jan 22 09:19:44 2019
New Revision: 351842
URL: http://llvm.org/viewvc/llvm-project?rev=351842&view=rev
Log:
[llvm-mca][X86] Add VPOPCNTDQ tests
Matches test coverage of test\CodeGen\X86\avx512vpopcntdq-schedule.ll
Added:
llvm/trunk/test/tools/llvm-mca/X86/Generic/resources-avx512vpopcntdq.s
llvm/trunk/test/tools/llvm-mca/X86/Generic/resources-avx512vpopcntdqvl.s
Added: llvm/trunk/test/tools/llvm-mca/X86/Generic/resources-avx512vpopcntdq.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-mca/X86/Generic/resources-avx512vpopcntdq.s?rev=351842&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-mca/X86/Generic/resources-avx512vpopcntdq.s (added)
+++ llvm/trunk/test/tools/llvm-mca/X86/Generic/resources-avx512vpopcntdq.s Tue Jan 22 09:19:44 2019
@@ -0,0 +1,89 @@
+# NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
+# RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=x86-64 -instruction-tables < %s | FileCheck %s
+
+vpopcntd %zmm1, %zmm0
+vpopcntd (%rdi), %zmm0
+vpopcntd (%rdi){1to16}, %zmm0
+
+vpopcntd %zmm1, %zmm0 {%k1}
+vpopcntd (%rdi), %zmm0 {%k1}
+vpopcntd (%rdi){1to16}, %zmm0 {%k1}
+
+vpopcntd %zmm1, %zmm0 {%k1} {z}
+vpopcntd (%rdi), %zmm0 {%k1} {z}
+vpopcntd (%rdi){1to16}, %zmm0 {%k1} {z}
+
+vpopcntq %zmm1, %zmm0
+vpopcntq (%rdi), %zmm0
+vpopcntq (%rdi){1to8}, %zmm0
+
+vpopcntq %zmm1, %zmm0 {%k1}
+vpopcntq (%rdi), %zmm0 {%k1}
+vpopcntq (%rdi){1to8}, %zmm0 {%k1}
+
+vpopcntq %zmm1, %zmm0 {%k1} {z}
+vpopcntq (%rdi), %zmm0 {%k1} {z}
+vpopcntq (%rdi){1to8}, %zmm0 {%k1} {z}
+
+# CHECK: Instruction Info:
+# CHECK-NEXT: [1]: #uOps
+# CHECK-NEXT: [2]: Latency
+# CHECK-NEXT: [3]: RThroughput
+# CHECK-NEXT: [4]: MayLoad
+# CHECK-NEXT: [5]: MayStore
+# CHECK-NEXT: [6]: HasSideEffects (U)
+
+# CHECK: [1] [2] [3] [4] [5] [6] Instructions:
+# CHECK-NEXT: 1 1 0.50 vpopcntd %zmm1, %zmm0
+# CHECK-NEXT: 2 8 0.50 * vpopcntd (%rdi), %zmm0
+# CHECK-NEXT: 2 8 0.50 * vpopcntd (%rdi){1to16}, %zmm0
+# CHECK-NEXT: 1 1 0.50 vpopcntd %zmm1, %zmm0 {%k1}
+# CHECK-NEXT: 2 8 0.50 * vpopcntd (%rdi), %zmm0 {%k1}
+# CHECK-NEXT: 2 8 0.50 * vpopcntd (%rdi){1to16}, %zmm0 {%k1}
+# CHECK-NEXT: 1 1 0.50 vpopcntd %zmm1, %zmm0 {%k1} {z}
+# CHECK-NEXT: 2 8 0.50 * vpopcntd (%rdi), %zmm0 {%k1} {z}
+# CHECK-NEXT: 2 8 0.50 * vpopcntd (%rdi){1to16}, %zmm0 {%k1} {z}
+# CHECK-NEXT: 1 1 0.50 vpopcntq %zmm1, %zmm0
+# CHECK-NEXT: 2 8 0.50 * vpopcntq (%rdi), %zmm0
+# CHECK-NEXT: 2 8 0.50 * vpopcntq (%rdi){1to8}, %zmm0
+# CHECK-NEXT: 1 1 0.50 vpopcntq %zmm1, %zmm0 {%k1}
+# CHECK-NEXT: 2 8 0.50 * vpopcntq (%rdi), %zmm0 {%k1}
+# CHECK-NEXT: 2 8 0.50 * vpopcntq (%rdi){1to8}, %zmm0 {%k1}
+# CHECK-NEXT: 1 1 0.50 vpopcntq %zmm1, %zmm0 {%k1} {z}
+# CHECK-NEXT: 2 8 0.50 * vpopcntq (%rdi), %zmm0 {%k1} {z}
+# CHECK-NEXT: 2 8 0.50 * vpopcntq (%rdi){1to8}, %zmm0 {%k1} {z}
+
+# CHECK: Resources:
+# CHECK-NEXT: [0] - SBDivider
+# CHECK-NEXT: [1] - SBFPDivider
+# CHECK-NEXT: [2] - SBPort0
+# CHECK-NEXT: [3] - SBPort1
+# CHECK-NEXT: [4] - SBPort4
+# CHECK-NEXT: [5] - SBPort5
+# CHECK-NEXT: [6.0] - SBPort23
+# CHECK-NEXT: [6.1] - SBPort23
+
+# CHECK: Resource pressure per iteration:
+# CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6.0] [6.1]
+# CHECK-NEXT: - - - 9.00 - 9.00 6.00 6.00
+
+# CHECK: Resource pressure by instruction:
+# CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6.0] [6.1] Instructions:
+# CHECK-NEXT: - - - 0.50 - 0.50 - - vpopcntd %zmm1, %zmm0
+# CHECK-NEXT: - - - 0.50 - 0.50 0.50 0.50 vpopcntd (%rdi), %zmm0
+# CHECK-NEXT: - - - 0.50 - 0.50 0.50 0.50 vpopcntd (%rdi){1to16}, %zmm0
+# CHECK-NEXT: - - - 0.50 - 0.50 - - vpopcntd %zmm1, %zmm0 {%k1}
+# CHECK-NEXT: - - - 0.50 - 0.50 0.50 0.50 vpopcntd (%rdi), %zmm0 {%k1}
+# CHECK-NEXT: - - - 0.50 - 0.50 0.50 0.50 vpopcntd (%rdi){1to16}, %zmm0 {%k1}
+# CHECK-NEXT: - - - 0.50 - 0.50 - - vpopcntd %zmm1, %zmm0 {%k1} {z}
+# CHECK-NEXT: - - - 0.50 - 0.50 0.50 0.50 vpopcntd (%rdi), %zmm0 {%k1} {z}
+# CHECK-NEXT: - - - 0.50 - 0.50 0.50 0.50 vpopcntd (%rdi){1to16}, %zmm0 {%k1} {z}
+# CHECK-NEXT: - - - 0.50 - 0.50 - - vpopcntq %zmm1, %zmm0
+# CHECK-NEXT: - - - 0.50 - 0.50 0.50 0.50 vpopcntq (%rdi), %zmm0
+# CHECK-NEXT: - - - 0.50 - 0.50 0.50 0.50 vpopcntq (%rdi){1to8}, %zmm0
+# CHECK-NEXT: - - - 0.50 - 0.50 - - vpopcntq %zmm1, %zmm0 {%k1}
+# CHECK-NEXT: - - - 0.50 - 0.50 0.50 0.50 vpopcntq (%rdi), %zmm0 {%k1}
+# CHECK-NEXT: - - - 0.50 - 0.50 0.50 0.50 vpopcntq (%rdi){1to8}, %zmm0 {%k1}
+# CHECK-NEXT: - - - 0.50 - 0.50 - - vpopcntq %zmm1, %zmm0 {%k1} {z}
+# CHECK-NEXT: - - - 0.50 - 0.50 0.50 0.50 vpopcntq (%rdi), %zmm0 {%k1} {z}
+# CHECK-NEXT: - - - 0.50 - 0.50 0.50 0.50 vpopcntq (%rdi){1to8}, %zmm0 {%k1} {z}
Added: llvm/trunk/test/tools/llvm-mca/X86/Generic/resources-avx512vpopcntdqvl.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-mca/X86/Generic/resources-avx512vpopcntdqvl.s?rev=351842&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-mca/X86/Generic/resources-avx512vpopcntdqvl.s (added)
+++ llvm/trunk/test/tools/llvm-mca/X86/Generic/resources-avx512vpopcntdqvl.s Tue Jan 22 09:19:44 2019
@@ -0,0 +1,149 @@
+# NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
+# RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=x86-64 -instruction-tables < %s | FileCheck %s
+
+vpopcntd %xmm1, %xmm0
+vpopcntd (%rdi), %xmm0
+vpopcntd (%rdi){1to4}, %xmm0
+
+vpopcntd %xmm1, %xmm0 {%k1}
+vpopcntd (%rdi), %xmm0 {%k1}
+vpopcntd (%rdi){1to4}, %xmm0 {%k1}
+
+vpopcntd %xmm1, %xmm0 {%k1} {z}
+vpopcntd (%rdi), %xmm0 {%k1} {z}
+vpopcntd (%rdi){1to4}, %xmm0 {%k1} {z}
+
+vpopcntd %ymm1, %ymm0
+vpopcntd (%rdi), %ymm0
+vpopcntd (%rdi){1to8}, %ymm0
+
+vpopcntd %ymm1, %ymm0 {%k1}
+vpopcntd (%rdi), %ymm0 {%k1}
+vpopcntd (%rdi){1to8}, %ymm0 {%k1}
+
+vpopcntd %ymm1, %ymm0 {%k1} {z}
+vpopcntd (%rdi), %ymm0 {%k1} {z}
+vpopcntd (%rdi){1to8}, %ymm0 {%k1} {z}
+
+vpopcntq %xmm1, %xmm0
+vpopcntq (%rdi), %xmm0
+vpopcntq (%rdi){1to2}, %xmm0
+
+vpopcntq %xmm1, %xmm0 {%k1}
+vpopcntq (%rdi), %xmm0 {%k1}
+vpopcntq (%rdi){1to2}, %xmm0 {%k1}
+
+vpopcntq %xmm1, %xmm0 {%k1} {z}
+vpopcntq (%rdi), %xmm0 {%k1} {z}
+vpopcntq (%rdi){1to2}, %xmm0 {%k1} {z}
+
+vpopcntq %ymm1, %ymm0
+vpopcntq (%rdi), %ymm0
+vpopcntq (%rdi){1to4}, %ymm0
+
+vpopcntq %ymm1, %ymm0 {%k1}
+vpopcntq (%rdi), %ymm0 {%k1}
+vpopcntq (%rdi){1to4}, %ymm0 {%k1}
+
+vpopcntq %ymm1, %ymm0 {%k1} {z}
+vpopcntq (%rdi), %ymm0 {%k1} {z}
+vpopcntq (%rdi){1to4}, %ymm0 {%k1} {z}
+
+# CHECK: Instruction Info:
+# CHECK-NEXT: [1]: #uOps
+# CHECK-NEXT: [2]: Latency
+# CHECK-NEXT: [3]: RThroughput
+# CHECK-NEXT: [4]: MayLoad
+# CHECK-NEXT: [5]: MayStore
+# CHECK-NEXT: [6]: HasSideEffects (U)
+
+# CHECK: [1] [2] [3] [4] [5] [6] Instructions:
+# CHECK-NEXT: 1 1 0.50 vpopcntd %xmm1, %xmm0
+# CHECK-NEXT: 2 7 0.50 * vpopcntd (%rdi), %xmm0
+# CHECK-NEXT: 2 7 0.50 * vpopcntd (%rdi){1to4}, %xmm0
+# CHECK-NEXT: 1 1 0.50 vpopcntd %xmm1, %xmm0 {%k1}
+# CHECK-NEXT: 2 7 0.50 * vpopcntd (%rdi), %xmm0 {%k1}
+# CHECK-NEXT: 2 7 0.50 * vpopcntd (%rdi){1to4}, %xmm0 {%k1}
+# CHECK-NEXT: 1 1 0.50 vpopcntd %xmm1, %xmm0 {%k1} {z}
+# CHECK-NEXT: 2 7 0.50 * vpopcntd (%rdi), %xmm0 {%k1} {z}
+# CHECK-NEXT: 2 7 0.50 * vpopcntd (%rdi){1to4}, %xmm0 {%k1} {z}
+# CHECK-NEXT: 1 1 0.50 vpopcntd %ymm1, %ymm0
+# CHECK-NEXT: 2 8 0.50 * vpopcntd (%rdi), %ymm0
+# CHECK-NEXT: 2 8 0.50 * vpopcntd (%rdi){1to8}, %ymm0
+# CHECK-NEXT: 1 1 0.50 vpopcntd %ymm1, %ymm0 {%k1}
+# CHECK-NEXT: 2 8 0.50 * vpopcntd (%rdi), %ymm0 {%k1}
+# CHECK-NEXT: 2 8 0.50 * vpopcntd (%rdi){1to8}, %ymm0 {%k1}
+# CHECK-NEXT: 1 1 0.50 vpopcntd %ymm1, %ymm0 {%k1} {z}
+# CHECK-NEXT: 2 8 0.50 * vpopcntd (%rdi), %ymm0 {%k1} {z}
+# CHECK-NEXT: 2 8 0.50 * vpopcntd (%rdi){1to8}, %ymm0 {%k1} {z}
+# CHECK-NEXT: 1 1 0.50 vpopcntq %xmm1, %xmm0
+# CHECK-NEXT: 2 7 0.50 * vpopcntq (%rdi), %xmm0
+# CHECK-NEXT: 2 7 0.50 * vpopcntq (%rdi){1to2}, %xmm0
+# CHECK-NEXT: 1 1 0.50 vpopcntq %xmm1, %xmm0 {%k1}
+# CHECK-NEXT: 2 7 0.50 * vpopcntq (%rdi), %xmm0 {%k1}
+# CHECK-NEXT: 2 7 0.50 * vpopcntq (%rdi){1to2}, %xmm0 {%k1}
+# CHECK-NEXT: 1 1 0.50 vpopcntq %xmm1, %xmm0 {%k1} {z}
+# CHECK-NEXT: 2 7 0.50 * vpopcntq (%rdi), %xmm0 {%k1} {z}
+# CHECK-NEXT: 2 7 0.50 * vpopcntq (%rdi){1to2}, %xmm0 {%k1} {z}
+# CHECK-NEXT: 1 1 0.50 vpopcntq %ymm1, %ymm0
+# CHECK-NEXT: 2 8 0.50 * vpopcntq (%rdi), %ymm0
+# CHECK-NEXT: 2 8 0.50 * vpopcntq (%rdi){1to4}, %ymm0
+# CHECK-NEXT: 1 1 0.50 vpopcntq %ymm1, %ymm0 {%k1}
+# CHECK-NEXT: 2 8 0.50 * vpopcntq (%rdi), %ymm0 {%k1}
+# CHECK-NEXT: 2 8 0.50 * vpopcntq (%rdi){1to4}, %ymm0 {%k1}
+# CHECK-NEXT: 1 1 0.50 vpopcntq %ymm1, %ymm0 {%k1} {z}
+# CHECK-NEXT: 2 8 0.50 * vpopcntq (%rdi), %ymm0 {%k1} {z}
+# CHECK-NEXT: 2 8 0.50 * vpopcntq (%rdi){1to4}, %ymm0 {%k1} {z}
+
+# CHECK: Resources:
+# CHECK-NEXT: [0] - SBDivider
+# CHECK-NEXT: [1] - SBFPDivider
+# CHECK-NEXT: [2] - SBPort0
+# CHECK-NEXT: [3] - SBPort1
+# CHECK-NEXT: [4] - SBPort4
+# CHECK-NEXT: [5] - SBPort5
+# CHECK-NEXT: [6.0] - SBPort23
+# CHECK-NEXT: [6.1] - SBPort23
+
+# CHECK: Resource pressure per iteration:
+# CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6.0] [6.1]
+# CHECK-NEXT: - - - 18.00 - 18.00 12.00 12.00
+
+# CHECK: Resource pressure by instruction:
+# CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6.0] [6.1] Instructions:
+# CHECK-NEXT: - - - 0.50 - 0.50 - - vpopcntd %xmm1, %xmm0
+# CHECK-NEXT: - - - 0.50 - 0.50 0.50 0.50 vpopcntd (%rdi), %xmm0
+# CHECK-NEXT: - - - 0.50 - 0.50 0.50 0.50 vpopcntd (%rdi){1to4}, %xmm0
+# CHECK-NEXT: - - - 0.50 - 0.50 - - vpopcntd %xmm1, %xmm0 {%k1}
+# CHECK-NEXT: - - - 0.50 - 0.50 0.50 0.50 vpopcntd (%rdi), %xmm0 {%k1}
+# CHECK-NEXT: - - - 0.50 - 0.50 0.50 0.50 vpopcntd (%rdi){1to4}, %xmm0 {%k1}
+# CHECK-NEXT: - - - 0.50 - 0.50 - - vpopcntd %xmm1, %xmm0 {%k1} {z}
+# CHECK-NEXT: - - - 0.50 - 0.50 0.50 0.50 vpopcntd (%rdi), %xmm0 {%k1} {z}
+# CHECK-NEXT: - - - 0.50 - 0.50 0.50 0.50 vpopcntd (%rdi){1to4}, %xmm0 {%k1} {z}
+# CHECK-NEXT: - - - 0.50 - 0.50 - - vpopcntd %ymm1, %ymm0
+# CHECK-NEXT: - - - 0.50 - 0.50 0.50 0.50 vpopcntd (%rdi), %ymm0
+# CHECK-NEXT: - - - 0.50 - 0.50 0.50 0.50 vpopcntd (%rdi){1to8}, %ymm0
+# CHECK-NEXT: - - - 0.50 - 0.50 - - vpopcntd %ymm1, %ymm0 {%k1}
+# CHECK-NEXT: - - - 0.50 - 0.50 0.50 0.50 vpopcntd (%rdi), %ymm0 {%k1}
+# CHECK-NEXT: - - - 0.50 - 0.50 0.50 0.50 vpopcntd (%rdi){1to8}, %ymm0 {%k1}
+# CHECK-NEXT: - - - 0.50 - 0.50 - - vpopcntd %ymm1, %ymm0 {%k1} {z}
+# CHECK-NEXT: - - - 0.50 - 0.50 0.50 0.50 vpopcntd (%rdi), %ymm0 {%k1} {z}
+# CHECK-NEXT: - - - 0.50 - 0.50 0.50 0.50 vpopcntd (%rdi){1to8}, %ymm0 {%k1} {z}
+# CHECK-NEXT: - - - 0.50 - 0.50 - - vpopcntq %xmm1, %xmm0
+# CHECK-NEXT: - - - 0.50 - 0.50 0.50 0.50 vpopcntq (%rdi), %xmm0
+# CHECK-NEXT: - - - 0.50 - 0.50 0.50 0.50 vpopcntq (%rdi){1to2}, %xmm0
+# CHECK-NEXT: - - - 0.50 - 0.50 - - vpopcntq %xmm1, %xmm0 {%k1}
+# CHECK-NEXT: - - - 0.50 - 0.50 0.50 0.50 vpopcntq (%rdi), %xmm0 {%k1}
+# CHECK-NEXT: - - - 0.50 - 0.50 0.50 0.50 vpopcntq (%rdi){1to2}, %xmm0 {%k1}
+# CHECK-NEXT: - - - 0.50 - 0.50 - - vpopcntq %xmm1, %xmm0 {%k1} {z}
+# CHECK-NEXT: - - - 0.50 - 0.50 0.50 0.50 vpopcntq (%rdi), %xmm0 {%k1} {z}
+# CHECK-NEXT: - - - 0.50 - 0.50 0.50 0.50 vpopcntq (%rdi){1to2}, %xmm0 {%k1} {z}
+# CHECK-NEXT: - - - 0.50 - 0.50 - - vpopcntq %ymm1, %ymm0
+# CHECK-NEXT: - - - 0.50 - 0.50 0.50 0.50 vpopcntq (%rdi), %ymm0
+# CHECK-NEXT: - - - 0.50 - 0.50 0.50 0.50 vpopcntq (%rdi){1to4}, %ymm0
+# CHECK-NEXT: - - - 0.50 - 0.50 - - vpopcntq %ymm1, %ymm0 {%k1}
+# CHECK-NEXT: - - - 0.50 - 0.50 0.50 0.50 vpopcntq (%rdi), %ymm0 {%k1}
+# CHECK-NEXT: - - - 0.50 - 0.50 0.50 0.50 vpopcntq (%rdi){1to4}, %ymm0 {%k1}
+# CHECK-NEXT: - - - 0.50 - 0.50 - - vpopcntq %ymm1, %ymm0 {%k1} {z}
+# CHECK-NEXT: - - - 0.50 - 0.50 0.50 0.50 vpopcntq (%rdi), %ymm0 {%k1} {z}
+# CHECK-NEXT: - - - 0.50 - 0.50 0.50 0.50 vpopcntq (%rdi){1to4}, %ymm0 {%k1} {z}
More information about the llvm-commits
mailing list