1 # NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
2 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=x86-64 -instruction-tables < %s | FileCheck %s
6 vpopcntb
%zmm1
, %zmm0
{%k1
}
7 vpopcntb
(%rdi
), %zmm0
{%k1
}
8 vpopcntb
%zmm1
, %zmm0
{%k1
} {z
}
9 vpopcntb
(%rdi
), %zmm0
{%k1
} {z
}
12 vpopcntw
(%rdi
), %zmm0
13 vpopcntw
%zmm1
, %zmm0
{%k1
}
14 vpopcntw
(%rdi
), %zmm0
{%k1
}
15 vpopcntw
%zmm1
, %zmm0
{%k1
} {z
}
16 vpopcntw
(%rdi
), %zmm0
{%k1
} {z
}
18 vpshufbitqmb
%zmm16
, %zmm17
, %k2
19 vpshufbitqmb
(%rdi
), %zmm17
, %k2
20 vpshufbitqmb
%zmm16
, %zmm17
, %k2
{%k1
}
21 vpshufbitqmb
(%rdi
), %zmm17
, %k2
{%k1
}
23 # CHECK: Instruction Info:
24 # CHECK-NEXT: [1]: #uOps
25 # CHECK-NEXT: [2]: Latency
26 # CHECK-NEXT: [3]: RThroughput
27 # CHECK-NEXT: [4]: MayLoad
28 # CHECK-NEXT: [5]: MayStore
29 # CHECK-NEXT: [6]: HasSideEffects (U)
31 # CHECK: [1] [2] [3] [4] [5] [6] Instructions:
32 # CHECK-NEXT: 1 1 0.50 vpopcntb %zmm1, %zmm0
33 # CHECK-NEXT: 2 8 0.50 * vpopcntb (%rdi), %zmm0
34 # CHECK-NEXT: 1 1 0.50 vpopcntb %zmm1, %zmm0 {%k1}
35 # CHECK-NEXT: 2 8 0.50 * vpopcntb (%rdi), %zmm0 {%k1}
36 # CHECK-NEXT: 1 1 0.50 vpopcntb %zmm1, %zmm0 {%k1} {z}
37 # CHECK-NEXT: 2 8 0.50 * vpopcntb (%rdi), %zmm0 {%k1} {z}
38 # CHECK-NEXT: 1 1 0.50 vpopcntw %zmm1, %zmm0
39 # CHECK-NEXT: 2 8 0.50 * vpopcntw (%rdi), %zmm0
40 # CHECK-NEXT: 1 1 0.50 vpopcntw %zmm1, %zmm0 {%k1}
41 # CHECK-NEXT: 2 8 0.50 * vpopcntw (%rdi), %zmm0 {%k1}
42 # CHECK-NEXT: 1 1 0.50 vpopcntw %zmm1, %zmm0 {%k1} {z}
43 # CHECK-NEXT: 2 8 0.50 * vpopcntw (%rdi), %zmm0 {%k1} {z}
44 # CHECK-NEXT: 1 5 1.00 vpshufbitqmb %zmm16, %zmm17, %k2
45 # CHECK-NEXT: 2 12 1.00 * vpshufbitqmb (%rdi), %zmm17, %k2
46 # CHECK-NEXT: 1 5 1.00 vpshufbitqmb %zmm16, %zmm17, %k2 {%k1}
47 # CHECK-NEXT: 2 12 1.00 * vpshufbitqmb (%rdi), %zmm17, %k2 {%k1}
50 # CHECK-NEXT: [0] - SBDivider
51 # CHECK-NEXT: [1] - SBFPDivider
52 # CHECK-NEXT: [2] - SBPort0
53 # CHECK-NEXT: [3] - SBPort1
54 # CHECK-NEXT: [4] - SBPort4
55 # CHECK-NEXT: [5] - SBPort5
56 # CHECK-NEXT: [6.0] - SBPort23
57 # CHECK-NEXT: [6.1] - SBPort23
59 # CHECK: Resource pressure per iteration:
60 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6.0] [6.1]
61 # CHECK-NEXT: - - 4.00 6.00 - 6.00 4.00 4.00
63 # CHECK: Resource pressure by instruction:
64 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6.0] [6.1] Instructions:
65 # CHECK-NEXT: - - - 0.50 - 0.50 - - vpopcntb %zmm1, %zmm0
66 # CHECK-NEXT: - - - 0.50 - 0.50 0.50 0.50 vpopcntb (%rdi), %zmm0
67 # CHECK-NEXT: - - - 0.50 - 0.50 - - vpopcntb %zmm1, %zmm0 {%k1}
68 # CHECK-NEXT: - - - 0.50 - 0.50 0.50 0.50 vpopcntb (%rdi), %zmm0 {%k1}
69 # CHECK-NEXT: - - - 0.50 - 0.50 - - vpopcntb %zmm1, %zmm0 {%k1} {z}
70 # CHECK-NEXT: - - - 0.50 - 0.50 0.50 0.50 vpopcntb (%rdi), %zmm0 {%k1} {z}
71 # CHECK-NEXT: - - - 0.50 - 0.50 - - vpopcntw %zmm1, %zmm0
72 # CHECK-NEXT: - - - 0.50 - 0.50 0.50 0.50 vpopcntw (%rdi), %zmm0
73 # CHECK-NEXT: - - - 0.50 - 0.50 - - vpopcntw %zmm1, %zmm0 {%k1}
74 # CHECK-NEXT: - - - 0.50 - 0.50 0.50 0.50 vpopcntw (%rdi), %zmm0 {%k1}
75 # CHECK-NEXT: - - - 0.50 - 0.50 - - vpopcntw %zmm1, %zmm0 {%k1} {z}
76 # CHECK-NEXT: - - - 0.50 - 0.50 0.50 0.50 vpopcntw (%rdi), %zmm0 {%k1} {z}
77 # CHECK-NEXT: - - 1.00 - - - - - vpshufbitqmb %zmm16, %zmm17, %k2
78 # CHECK-NEXT: - - 1.00 - - - 0.50 0.50 vpshufbitqmb (%rdi), %zmm17, %k2
79 # CHECK-NEXT: - - 1.00 - - - - - vpshufbitqmb %zmm16, %zmm17, %k2 {%k1}
80 # CHECK-NEXT: - - 1.00 - - - 0.50 0.50 vpshufbitqmb (%rdi), %zmm17, %k2 {%k1}