1 # NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
2 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=znver4 -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: 1 8 0.50 * vpopcntb (%rdi), %zmm0
34 # CHECK-NEXT: 1 1 0.50 vpopcntb %zmm1, %zmm0 {%k1}
35 # CHECK-NEXT: 1 8 0.50 * vpopcntb (%rdi), %zmm0 {%k1}
36 # CHECK-NEXT: 1 1 0.50 vpopcntb %zmm1, %zmm0 {%k1} {z}
37 # CHECK-NEXT: 1 8 0.50 * vpopcntb (%rdi), %zmm0 {%k1} {z}
38 # CHECK-NEXT: 1 1 0.50 vpopcntw %zmm1, %zmm0
39 # CHECK-NEXT: 1 8 0.50 * vpopcntw (%rdi), %zmm0
40 # CHECK-NEXT: 1 1 0.50 vpopcntw %zmm1, %zmm0 {%k1}
41 # CHECK-NEXT: 1 8 0.50 * vpopcntw (%rdi), %zmm0 {%k1}
42 # CHECK-NEXT: 1 1 0.50 vpopcntw %zmm1, %zmm0 {%k1} {z}
43 # CHECK-NEXT: 1 8 0.50 * vpopcntw (%rdi), %zmm0 {%k1} {z}
44 # CHECK-NEXT: 1 3 1.00 vpshufbitqmb %zmm16, %zmm17, %k2
45 # CHECK-NEXT: 1 10 1.00 * vpshufbitqmb (%rdi), %zmm17, %k2
46 # CHECK-NEXT: 1 3 1.00 vpshufbitqmb %zmm16, %zmm17, %k2 {%k1}
47 # CHECK-NEXT: 1 10 1.00 * vpshufbitqmb (%rdi), %zmm17, %k2 {%k1}
50 # CHECK-NEXT: [0] - Zn4AGU0
51 # CHECK-NEXT: [1] - Zn4AGU1
52 # CHECK-NEXT: [2] - Zn4AGU2
53 # CHECK-NEXT: [3] - Zn4ALU0
54 # CHECK-NEXT: [4] - Zn4ALU1
55 # CHECK-NEXT: [5] - Zn4ALU2
56 # CHECK-NEXT: [6] - Zn4ALU3
57 # CHECK-NEXT: [7] - Zn4BRU1
58 # CHECK-NEXT: [8] - Zn4FP0
59 # CHECK-NEXT: [9] - Zn4FP1
60 # CHECK-NEXT: [10] - Zn4FP2
61 # CHECK-NEXT: [11] - Zn4FP3
62 # CHECK-NEXT: [12.0] - Zn4FP45
63 # CHECK-NEXT: [12.1] - Zn4FP45
64 # CHECK-NEXT: [13] - Zn4FPSt
65 # CHECK-NEXT: [14.0] - Zn4LSU
66 # CHECK-NEXT: [14.1] - Zn4LSU
67 # CHECK-NEXT: [14.2] - Zn4LSU
68 # CHECK-NEXT: [15.0] - Zn4Load
69 # CHECK-NEXT: [15.1] - Zn4Load
70 # CHECK-NEXT: [15.2] - Zn4Load
71 # CHECK-NEXT: [16.0] - Zn4Store
72 # CHECK-NEXT: [16.1] - Zn4Store
74 # CHECK: Resource pressure per iteration:
75 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12.0] [12.1] [13] [14.0] [14.1] [14.2] [15.0] [15.1] [15.2] [16.0] [16.1]
76 # CHECK-NEXT: - - - - - - - - 10.00 6.00 6.00 10.00 4.00 4.00 - 2.67 2.67 2.67 2.67 2.67 2.67 - -
78 # CHECK: Resource pressure by instruction:
79 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12.0] [12.1] [13] [14.0] [14.1] [14.2] [15.0] [15.1] [15.2] [16.0] [16.1] Instructions:
80 # CHECK-NEXT: - - - - - - - - 0.50 0.50 0.50 0.50 - - - - - - - - - - - vpopcntb %zmm1, %zmm0
81 # CHECK-NEXT: - - - - - - - - 0.50 0.50 0.50 0.50 0.50 0.50 - 0.33 0.33 0.33 0.33 0.33 0.33 - - vpopcntb (%rdi), %zmm0
82 # CHECK-NEXT: - - - - - - - - 0.50 0.50 0.50 0.50 - - - - - - - - - - - vpopcntb %zmm1, %zmm0 {%k1}
83 # CHECK-NEXT: - - - - - - - - 0.50 0.50 0.50 0.50 0.50 0.50 - 0.33 0.33 0.33 0.33 0.33 0.33 - - vpopcntb (%rdi), %zmm0 {%k1}
84 # CHECK-NEXT: - - - - - - - - 0.50 0.50 0.50 0.50 - - - - - - - - - - - vpopcntb %zmm1, %zmm0 {%k1} {z}
85 # CHECK-NEXT: - - - - - - - - 0.50 0.50 0.50 0.50 0.50 0.50 - 0.33 0.33 0.33 0.33 0.33 0.33 - - vpopcntb (%rdi), %zmm0 {%k1} {z}
86 # CHECK-NEXT: - - - - - - - - 0.50 0.50 0.50 0.50 - - - - - - - - - - - vpopcntw %zmm1, %zmm0
87 # CHECK-NEXT: - - - - - - - - 0.50 0.50 0.50 0.50 0.50 0.50 - 0.33 0.33 0.33 0.33 0.33 0.33 - - vpopcntw (%rdi), %zmm0
88 # CHECK-NEXT: - - - - - - - - 0.50 0.50 0.50 0.50 - - - - - - - - - - - vpopcntw %zmm1, %zmm0 {%k1}
89 # CHECK-NEXT: - - - - - - - - 0.50 0.50 0.50 0.50 0.50 0.50 - 0.33 0.33 0.33 0.33 0.33 0.33 - - vpopcntw (%rdi), %zmm0 {%k1}
90 # CHECK-NEXT: - - - - - - - - 0.50 0.50 0.50 0.50 - - - - - - - - - - - vpopcntw %zmm1, %zmm0 {%k1} {z}
91 # CHECK-NEXT: - - - - - - - - 0.50 0.50 0.50 0.50 0.50 0.50 - 0.33 0.33 0.33 0.33 0.33 0.33 - - vpopcntw (%rdi), %zmm0 {%k1} {z}
92 # CHECK-NEXT: - - - - - - - - 1.00 - - 1.00 - - - - - - - - - - - vpshufbitqmb %zmm16, %zmm17, %k2
93 # CHECK-NEXT: - - - - - - - - 1.00 - - 1.00 0.50 0.50 - 0.33 0.33 0.33 0.33 0.33 0.33 - - vpshufbitqmb (%rdi), %zmm17, %k2
94 # CHECK-NEXT: - - - - - - - - 1.00 - - 1.00 - - - - - - - - - - - vpshufbitqmb %zmm16, %zmm17, %k2 {%k1}
95 # CHECK-NEXT: - - - - - - - - 1.00 - - 1.00 0.50 0.50 - 0.33 0.33 0.33 0.33 0.33 0.33 - - vpshufbitqmb (%rdi), %zmm17, %k2 {%k1}