56 lines · plain
1# NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py2# RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=alderlake -instruction-tables < %s | FileCheck %s3 4popcntw %cx, %cx5popcntw (%rax), %cx6 7popcntl %eax, %ecx8popcntl (%rax), %ecx9 10popcntq %rax, %rcx11popcntq (%rax), %rcx12 13# CHECK: Instruction Info:14# CHECK-NEXT: [1]: #uOps15# CHECK-NEXT: [2]: Latency16# CHECK-NEXT: [3]: RThroughput17# CHECK-NEXT: [4]: MayLoad18# CHECK-NEXT: [5]: MayStore19# CHECK-NEXT: [6]: HasSideEffects (U)20 21# CHECK: [1] [2] [3] [4] [5] [6] Instructions:22# CHECK-NEXT: 1 3 1.00 popcntw %cx, %cx23# CHECK-NEXT: 2 8 1.00 * popcntw (%rax), %cx24# CHECK-NEXT: 1 3 1.00 popcntl %eax, %ecx25# CHECK-NEXT: 2 8 1.00 * popcntl (%rax), %ecx26# CHECK-NEXT: 1 3 1.00 popcntq %rax, %rcx27# CHECK-NEXT: 2 8 1.00 * popcntq (%rax), %rcx28 29# CHECK: Resources:30# CHECK-NEXT: [0] - ADLPPort0031# CHECK-NEXT: [1] - ADLPPort0132# CHECK-NEXT: [2] - ADLPPort0233# CHECK-NEXT: [3] - ADLPPort0334# CHECK-NEXT: [4] - ADLPPort0435# CHECK-NEXT: [5] - ADLPPort0536# CHECK-NEXT: [6] - ADLPPort0637# CHECK-NEXT: [7] - ADLPPort0738# CHECK-NEXT: [8] - ADLPPort0839# CHECK-NEXT: [9] - ADLPPort0940# CHECK-NEXT: [10] - ADLPPort1041# CHECK-NEXT: [11] - ADLPPort1142# CHECK-NEXT: [12] - ADLPPortInvalid43 44# CHECK: Resource pressure per iteration:45# CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12]46# CHECK-NEXT: - 6.00 1.00 1.00 - - - - - - 1.00 - -47 48# CHECK: Resource pressure by instruction:49# CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] Instructions:50# CHECK-NEXT: - 1.00 - - - - - - - - - - - popcntw %cx, %cx51# CHECK-NEXT: - 1.00 0.33 0.33 - - - - - - 0.33 - - popcntw (%rax), %cx52# CHECK-NEXT: - 1.00 - - - - - - - - - - - popcntl %eax, %ecx53# CHECK-NEXT: - 1.00 0.33 0.33 - - - - - - 0.33 - - popcntl (%rax), %ecx54# CHECK-NEXT: - 1.00 - - - - - - - - - - - popcntq %rax, %rcx55# CHECK-NEXT: - 1.00 0.33 0.33 - - - - - - 0.33 - - popcntq (%rax), %rcx56