1 # NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
2 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=sapphirerapids -instruction-tables < %s | FileCheck %s
6 vpopcntd
(%rdi
){1to16
}, %zmm0
8 vpopcntd
%zmm1
, %zmm0
{%k1
}
9 vpopcntd
(%rdi
), %zmm0
{%k1
}
10 vpopcntd
(%rdi
){1to16
}, %zmm0
{%k1
}
12 vpopcntd
%zmm1
, %zmm0
{%k1
} {z
}
13 vpopcntd
(%rdi
), %zmm0
{%k1
} {z
}
14 vpopcntd
(%rdi
){1to16
}, %zmm0
{%k1
} {z
}
17 vpopcntq
(%rdi
), %zmm0
18 vpopcntq
(%rdi
){1to8
}, %zmm0
20 vpopcntq
%zmm1
, %zmm0
{%k1
}
21 vpopcntq
(%rdi
), %zmm0
{%k1
}
22 vpopcntq
(%rdi
){1to8
}, %zmm0
{%k1
}
24 vpopcntq
%zmm1
, %zmm0
{%k1
} {z
}
25 vpopcntq
(%rdi
), %zmm0
{%k1
} {z
}
26 vpopcntq
(%rdi
){1to8
}, %zmm0
{%k1
} {z
}
28 # CHECK: Instruction Info:
29 # CHECK-NEXT: [1]: #uOps
30 # CHECK-NEXT: [2]: Latency
31 # CHECK-NEXT: [3]: RThroughput
32 # CHECK-NEXT: [4]: MayLoad
33 # CHECK-NEXT: [5]: MayStore
34 # CHECK-NEXT: [6]: HasSideEffects (U)
36 # CHECK: [1] [2] [3] [4] [5] [6] Instructions:
37 # CHECK-NEXT: 1 3 1.00 vpopcntd %zmm1, %zmm0
38 # CHECK-NEXT: 2 11 1.00 * vpopcntd (%rdi), %zmm0
39 # CHECK-NEXT: 2 11 1.00 * vpopcntd (%rdi){1to16}, %zmm0
40 # CHECK-NEXT: 1 3 1.00 vpopcntd %zmm1, %zmm0 {%k1}
41 # CHECK-NEXT: 2 11 1.00 * vpopcntd (%rdi), %zmm0 {%k1}
42 # CHECK-NEXT: 2 11 1.00 * vpopcntd (%rdi){1to16}, %zmm0 {%k1}
43 # CHECK-NEXT: 1 3 1.00 vpopcntd %zmm1, %zmm0 {%k1} {z}
44 # CHECK-NEXT: 2 11 1.00 * vpopcntd (%rdi), %zmm0 {%k1} {z}
45 # CHECK-NEXT: 2 11 1.00 * vpopcntd (%rdi){1to16}, %zmm0 {%k1} {z}
46 # CHECK-NEXT: 1 3 1.00 vpopcntq %zmm1, %zmm0
47 # CHECK-NEXT: 2 11 1.00 * vpopcntq (%rdi), %zmm0
48 # CHECK-NEXT: 2 11 1.00 * vpopcntq (%rdi){1to8}, %zmm0
49 # CHECK-NEXT: 1 3 1.00 vpopcntq %zmm1, %zmm0 {%k1}
50 # CHECK-NEXT: 2 11 1.00 * vpopcntq (%rdi), %zmm0 {%k1}
51 # CHECK-NEXT: 2 11 1.00 * vpopcntq (%rdi){1to8}, %zmm0 {%k1}
52 # CHECK-NEXT: 1 3 1.00 vpopcntq %zmm1, %zmm0 {%k1} {z}
53 # CHECK-NEXT: 2 11 1.00 * vpopcntq (%rdi), %zmm0 {%k1} {z}
54 # CHECK-NEXT: 2 11 1.00 * vpopcntq (%rdi){1to8}, %zmm0 {%k1} {z}
57 # CHECK-NEXT: [0] - SPRPort00
58 # CHECK-NEXT: [1] - SPRPort01
59 # CHECK-NEXT: [2] - SPRPort02
60 # CHECK-NEXT: [3] - SPRPort03
61 # CHECK-NEXT: [4] - SPRPort04
62 # CHECK-NEXT: [5] - SPRPort05
63 # CHECK-NEXT: [6] - SPRPort06
64 # CHECK-NEXT: [7] - SPRPort07
65 # CHECK-NEXT: [8] - SPRPort08
66 # CHECK-NEXT: [9] - SPRPort09
67 # CHECK-NEXT: [10] - SPRPort10
68 # CHECK-NEXT: [11] - SPRPort11
69 # CHECK-NEXT: [12] - SPRPortInvalid
71 # CHECK: Resource pressure per iteration:
72 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12]
73 # CHECK-NEXT: - - 4.00 4.00 - 18.00 - - - - 4.00 - -
75 # CHECK: Resource pressure by instruction:
76 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] Instructions:
77 # CHECK-NEXT: - - - - - 1.00 - - - - - - - vpopcntd %zmm1, %zmm0
78 # CHECK-NEXT: - - 0.33 0.33 - 1.00 - - - - 0.33 - - vpopcntd (%rdi), %zmm0
79 # CHECK-NEXT: - - 0.33 0.33 - 1.00 - - - - 0.33 - - vpopcntd (%rdi){1to16}, %zmm0
80 # CHECK-NEXT: - - - - - 1.00 - - - - - - - vpopcntd %zmm1, %zmm0 {%k1}
81 # CHECK-NEXT: - - 0.33 0.33 - 1.00 - - - - 0.33 - - vpopcntd (%rdi), %zmm0 {%k1}
82 # CHECK-NEXT: - - 0.33 0.33 - 1.00 - - - - 0.33 - - vpopcntd (%rdi){1to16}, %zmm0 {%k1}
83 # CHECK-NEXT: - - - - - 1.00 - - - - - - - vpopcntd %zmm1, %zmm0 {%k1} {z}
84 # CHECK-NEXT: - - 0.33 0.33 - 1.00 - - - - 0.33 - - vpopcntd (%rdi), %zmm0 {%k1} {z}
85 # CHECK-NEXT: - - 0.33 0.33 - 1.00 - - - - 0.33 - - vpopcntd (%rdi){1to16}, %zmm0 {%k1} {z}
86 # CHECK-NEXT: - - - - - 1.00 - - - - - - - vpopcntq %zmm1, %zmm0
87 # CHECK-NEXT: - - 0.33 0.33 - 1.00 - - - - 0.33 - - vpopcntq (%rdi), %zmm0
88 # CHECK-NEXT: - - 0.33 0.33 - 1.00 - - - - 0.33 - - vpopcntq (%rdi){1to8}, %zmm0
89 # CHECK-NEXT: - - - - - 1.00 - - - - - - - vpopcntq %zmm1, %zmm0 {%k1}
90 # CHECK-NEXT: - - 0.33 0.33 - 1.00 - - - - 0.33 - - vpopcntq (%rdi), %zmm0 {%k1}
91 # CHECK-NEXT: - - 0.33 0.33 - 1.00 - - - - 0.33 - - vpopcntq (%rdi){1to8}, %zmm0 {%k1}
92 # CHECK-NEXT: - - - - - 1.00 - - - - - - - vpopcntq %zmm1, %zmm0 {%k1} {z}
93 # CHECK-NEXT: - - 0.33 0.33 - 1.00 - - - - 0.33 - - vpopcntq (%rdi), %zmm0 {%k1} {z}
94 # CHECK-NEXT: - - 0.33 0.33 - 1.00 - - - - 0.33 - - vpopcntq (%rdi){1to8}, %zmm0 {%k1} {z}