[Arm] Fix generating code with UB in NeonEmitter (#121802)
[llvm-project.git] / llvm / test / tools / llvm-mca / X86 / Generic / resources-avx512bitalgvl.s
blobff20a5521e63da1511be943a21bb341b378ed9fb
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
4 vpopcntb %xmm1, %xmm0
5 vpopcntb (%rdi), %xmm0
6 vpopcntb %xmm1, %xmm0 {%k1}
7 vpopcntb (%rdi), %xmm0 {%k1}
8 vpopcntb %xmm1, %xmm0 {%k1} {z}
9 vpopcntb (%rdi), %xmm0 {%k1} {z}
11 vpopcntb %ymm1, %ymm0
12 vpopcntb (%rdi), %ymm0
13 vpopcntb %ymm1, %ymm0 {%k1}
14 vpopcntb (%rdi), %ymm0 {%k1}
15 vpopcntb %ymm1, %ymm0 {%k1} {z}
16 vpopcntb (%rdi), %ymm0 {%k1} {z}
18 vpopcntw %xmm1, %xmm0
19 vpopcntw (%rdi), %xmm0
20 vpopcntw %xmm1, %xmm0 {%k1}
21 vpopcntw (%rdi), %xmm0 {%k1}
22 vpopcntw %xmm1, %xmm0 {%k1} {z}
23 vpopcntw (%rdi), %xmm0 {%k1} {z}
25 vpopcntw %ymm1, %ymm0
26 vpopcntw (%rdi), %ymm0
27 vpopcntw %ymm1, %ymm0 {%k1}
28 vpopcntw (%rdi), %ymm0 {%k1}
29 vpopcntw %ymm1, %ymm0 {%k1} {z}
30 vpopcntw (%rdi), %ymm0 {%k1} {z}
32 vpshufbitqmb %xmm16, %xmm17, %k2
33 vpshufbitqmb (%rdi), %xmm17, %k2
34 vpshufbitqmb %xmm16, %xmm17, %k2 {%k1}
35 vpshufbitqmb (%rdi), %xmm17, %k2 {%k1}
37 vpshufbitqmb %ymm16, %ymm17, %k2
38 vpshufbitqmb (%rdi), %ymm17, %k2
39 vpshufbitqmb %ymm16, %ymm17, %k2 {%k1}
40 vpshufbitqmb (%rdi), %ymm17, %k2 {%k1}
42 # CHECK: Instruction Info:
43 # CHECK-NEXT: [1]: #uOps
44 # CHECK-NEXT: [2]: Latency
45 # CHECK-NEXT: [3]: RThroughput
46 # CHECK-NEXT: [4]: MayLoad
47 # CHECK-NEXT: [5]: MayStore
48 # CHECK-NEXT: [6]: HasSideEffects (U)
50 # CHECK: [1] [2] [3] [4] [5] [6] Instructions:
51 # CHECK-NEXT: 1 1 0.50 vpopcntb %xmm1, %xmm0
52 # CHECK-NEXT: 2 7 0.50 * vpopcntb (%rdi), %xmm0
53 # CHECK-NEXT: 1 1 0.50 vpopcntb %xmm1, %xmm0 {%k1}
54 # CHECK-NEXT: 2 7 0.50 * vpopcntb (%rdi), %xmm0 {%k1}
55 # CHECK-NEXT: 1 1 0.50 vpopcntb %xmm1, %xmm0 {%k1} {z}
56 # CHECK-NEXT: 2 7 0.50 * vpopcntb (%rdi), %xmm0 {%k1} {z}
57 # CHECK-NEXT: 1 1 0.50 vpopcntb %ymm1, %ymm0
58 # CHECK-NEXT: 2 8 0.50 * vpopcntb (%rdi), %ymm0
59 # CHECK-NEXT: 1 1 0.50 vpopcntb %ymm1, %ymm0 {%k1}
60 # CHECK-NEXT: 2 8 0.50 * vpopcntb (%rdi), %ymm0 {%k1}
61 # CHECK-NEXT: 1 1 0.50 vpopcntb %ymm1, %ymm0 {%k1} {z}
62 # CHECK-NEXT: 2 8 0.50 * vpopcntb (%rdi), %ymm0 {%k1} {z}
63 # CHECK-NEXT: 1 1 0.50 vpopcntw %xmm1, %xmm0
64 # CHECK-NEXT: 2 7 0.50 * vpopcntw (%rdi), %xmm0
65 # CHECK-NEXT: 1 1 0.50 vpopcntw %xmm1, %xmm0 {%k1}
66 # CHECK-NEXT: 2 7 0.50 * vpopcntw (%rdi), %xmm0 {%k1}
67 # CHECK-NEXT: 1 1 0.50 vpopcntw %xmm1, %xmm0 {%k1} {z}
68 # CHECK-NEXT: 2 7 0.50 * vpopcntw (%rdi), %xmm0 {%k1} {z}
69 # CHECK-NEXT: 1 1 0.50 vpopcntw %ymm1, %ymm0
70 # CHECK-NEXT: 2 8 0.50 * vpopcntw (%rdi), %ymm0
71 # CHECK-NEXT: 1 1 0.50 vpopcntw %ymm1, %ymm0 {%k1}
72 # CHECK-NEXT: 2 8 0.50 * vpopcntw (%rdi), %ymm0 {%k1}
73 # CHECK-NEXT: 1 1 0.50 vpopcntw %ymm1, %ymm0 {%k1} {z}
74 # CHECK-NEXT: 2 8 0.50 * vpopcntw (%rdi), %ymm0 {%k1} {z}
75 # CHECK-NEXT: 1 5 1.00 vpshufbitqmb %xmm16, %xmm17, %k2
76 # CHECK-NEXT: 2 11 1.00 * vpshufbitqmb (%rdi), %xmm17, %k2
77 # CHECK-NEXT: 1 5 1.00 vpshufbitqmb %xmm16, %xmm17, %k2 {%k1}
78 # CHECK-NEXT: 2 11 1.00 * vpshufbitqmb (%rdi), %xmm17, %k2 {%k1}
79 # CHECK-NEXT: 1 5 1.00 vpshufbitqmb %ymm16, %ymm17, %k2
80 # CHECK-NEXT: 2 12 1.00 * vpshufbitqmb (%rdi), %ymm17, %k2
81 # CHECK-NEXT: 1 5 1.00 vpshufbitqmb %ymm16, %ymm17, %k2 {%k1}
82 # CHECK-NEXT: 2 12 1.00 * vpshufbitqmb (%rdi), %ymm17, %k2 {%k1}
84 # CHECK: Resources:
85 # CHECK-NEXT: [0] - SBDivider
86 # CHECK-NEXT: [1] - SBFPDivider
87 # CHECK-NEXT: [2] - SBPort0
88 # CHECK-NEXT: [3] - SBPort1
89 # CHECK-NEXT: [4] - SBPort4
90 # CHECK-NEXT: [5] - SBPort5
91 # CHECK-NEXT: [6.0] - SBPort23
92 # CHECK-NEXT: [6.1] - SBPort23
94 # CHECK: Resource pressure per iteration:
95 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6.0] [6.1]
96 # CHECK-NEXT: - - 8.00 12.00 - 12.00 8.00 8.00
98 # CHECK: Resource pressure by instruction:
99 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6.0] [6.1] Instructions:
100 # CHECK-NEXT: - - - 0.50 - 0.50 - - vpopcntb %xmm1, %xmm0
101 # CHECK-NEXT: - - - 0.50 - 0.50 0.50 0.50 vpopcntb (%rdi), %xmm0
102 # CHECK-NEXT: - - - 0.50 - 0.50 - - vpopcntb %xmm1, %xmm0 {%k1}
103 # CHECK-NEXT: - - - 0.50 - 0.50 0.50 0.50 vpopcntb (%rdi), %xmm0 {%k1}
104 # CHECK-NEXT: - - - 0.50 - 0.50 - - vpopcntb %xmm1, %xmm0 {%k1} {z}
105 # CHECK-NEXT: - - - 0.50 - 0.50 0.50 0.50 vpopcntb (%rdi), %xmm0 {%k1} {z}
106 # CHECK-NEXT: - - - 0.50 - 0.50 - - vpopcntb %ymm1, %ymm0
107 # CHECK-NEXT: - - - 0.50 - 0.50 0.50 0.50 vpopcntb (%rdi), %ymm0
108 # CHECK-NEXT: - - - 0.50 - 0.50 - - vpopcntb %ymm1, %ymm0 {%k1}
109 # CHECK-NEXT: - - - 0.50 - 0.50 0.50 0.50 vpopcntb (%rdi), %ymm0 {%k1}
110 # CHECK-NEXT: - - - 0.50 - 0.50 - - vpopcntb %ymm1, %ymm0 {%k1} {z}
111 # CHECK-NEXT: - - - 0.50 - 0.50 0.50 0.50 vpopcntb (%rdi), %ymm0 {%k1} {z}
112 # CHECK-NEXT: - - - 0.50 - 0.50 - - vpopcntw %xmm1, %xmm0
113 # CHECK-NEXT: - - - 0.50 - 0.50 0.50 0.50 vpopcntw (%rdi), %xmm0
114 # CHECK-NEXT: - - - 0.50 - 0.50 - - vpopcntw %xmm1, %xmm0 {%k1}
115 # CHECK-NEXT: - - - 0.50 - 0.50 0.50 0.50 vpopcntw (%rdi), %xmm0 {%k1}
116 # CHECK-NEXT: - - - 0.50 - 0.50 - - vpopcntw %xmm1, %xmm0 {%k1} {z}
117 # CHECK-NEXT: - - - 0.50 - 0.50 0.50 0.50 vpopcntw (%rdi), %xmm0 {%k1} {z}
118 # CHECK-NEXT: - - - 0.50 - 0.50 - - vpopcntw %ymm1, %ymm0
119 # CHECK-NEXT: - - - 0.50 - 0.50 0.50 0.50 vpopcntw (%rdi), %ymm0
120 # CHECK-NEXT: - - - 0.50 - 0.50 - - vpopcntw %ymm1, %ymm0 {%k1}
121 # CHECK-NEXT: - - - 0.50 - 0.50 0.50 0.50 vpopcntw (%rdi), %ymm0 {%k1}
122 # CHECK-NEXT: - - - 0.50 - 0.50 - - vpopcntw %ymm1, %ymm0 {%k1} {z}
123 # CHECK-NEXT: - - - 0.50 - 0.50 0.50 0.50 vpopcntw (%rdi), %ymm0 {%k1} {z}
124 # CHECK-NEXT: - - 1.00 - - - - - vpshufbitqmb %xmm16, %xmm17, %k2
125 # CHECK-NEXT: - - 1.00 - - - 0.50 0.50 vpshufbitqmb (%rdi), %xmm17, %k2
126 # CHECK-NEXT: - - 1.00 - - - - - vpshufbitqmb %xmm16, %xmm17, %k2 {%k1}
127 # CHECK-NEXT: - - 1.00 - - - 0.50 0.50 vpshufbitqmb (%rdi), %xmm17, %k2 {%k1}
128 # CHECK-NEXT: - - 1.00 - - - - - vpshufbitqmb %ymm16, %ymm17, %k2
129 # CHECK-NEXT: - - 1.00 - - - 0.50 0.50 vpshufbitqmb (%rdi), %ymm17, %k2
130 # CHECK-NEXT: - - 1.00 - - - - - vpshufbitqmb %ymm16, %ymm17, %k2 {%k1}
131 # CHECK-NEXT: - - 1.00 - - - 0.50 0.50 vpshufbitqmb (%rdi), %ymm17, %k2 {%k1}