Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / tools / llvm-mca / X86 / SapphireRapids / resources-avx512vbmi.s
blob83f4d3f40322413ee267d18673d968fb990f29bf
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
4 vpermb %zmm16, %zmm17, %zmm19
5 vpermb (%rax), %zmm17, %zmm19
6 vpermb %zmm16, %zmm17, %zmm19 {k1}
7 vpermb (%rax), %zmm17, %zmm19 {k1}
8 vpermb %zmm16, %zmm17, %zmm19 {k1}{z}
9 vpermb (%rax), %zmm17, %zmm19 {k1}{z}
11 vpermi2b %zmm16, %zmm17, %zmm19
12 vpermi2b (%rax), %zmm17, %zmm19
13 vpermi2b %zmm16, %zmm17, %zmm19 {k1}
14 vpermi2b (%rax), %zmm17, %zmm19 {k1}
15 vpermi2b %zmm16, %zmm17, %zmm19 {k1}{z}
16 vpermi2b (%rax), %zmm17, %zmm19 {k1}{z}
18 vpermt2b %zmm16, %zmm17, %zmm19
19 vpermt2b (%rax), %zmm17, %zmm19
20 vpermt2b %zmm16, %zmm17, %zmm19 {k1}
21 vpermt2b (%rax), %zmm17, %zmm19 {k1}
22 vpermt2b %zmm16, %zmm17, %zmm19 {k1}{z}
23 vpermt2b (%rax), %zmm17, %zmm19 {k1}{z}
25 vpmultishiftqb %zmm16, %zmm17, %zmm19
26 vpmultishiftqb (%rax), %zmm17, %zmm19
27 vpmultishiftqb (%rax){1to8}, %zmm17, %zmm19
28 vpmultishiftqb %zmm16, %zmm17, %zmm19 {k1}
29 vpmultishiftqb (%rax), %zmm17, %zmm19 {k1}
30 vpmultishiftqb (%rax){1to8}, %zmm17, %zmm19 {k1}
31 vpmultishiftqb %zmm16, %zmm17, %zmm19 {k1}{z}
32 vpmultishiftqb (%rax), %zmm17, %zmm19 {k1}{z}
33 vpmultishiftqb (%rax){1to8}, %zmm17, %zmm19 {k1}{z}
35 # CHECK: Instruction Info:
36 # CHECK-NEXT: [1]: #uOps
37 # CHECK-NEXT: [2]: Latency
38 # CHECK-NEXT: [3]: RThroughput
39 # CHECK-NEXT: [4]: MayLoad
40 # CHECK-NEXT: [5]: MayStore
41 # CHECK-NEXT: [6]: HasSideEffects (U)
43 # CHECK: [1] [2] [3] [4] [5] [6] Instructions:
44 # CHECK-NEXT: 1 3 1.00 vpermb %zmm16, %zmm17, %zmm19
45 # CHECK-NEXT: 2 11 1.00 * vpermb (%rax), %zmm17, %zmm19
46 # CHECK-NEXT: 1 5 1.00 vpermb %zmm16, %zmm17, %zmm19 {%k1}
47 # CHECK-NEXT: 2 13 1.00 * vpermb (%rax), %zmm17, %zmm19 {%k1}
48 # CHECK-NEXT: 1 5 1.00 vpermb %zmm16, %zmm17, %zmm19 {%k1} {z}
49 # CHECK-NEXT: 2 13 1.00 * vpermb (%rax), %zmm17, %zmm19 {%k1} {z}
50 # CHECK-NEXT: 3 5 2.00 vpermi2b %zmm16, %zmm17, %zmm19
51 # CHECK-NEXT: 4 12 2.00 * vpermi2b (%rax), %zmm17, %zmm19
52 # CHECK-NEXT: 3 7 2.00 vpermi2b %zmm16, %zmm17, %zmm19 {%k1}
53 # CHECK-NEXT: 4 14 2.00 * vpermi2b (%rax), %zmm17, %zmm19 {%k1}
54 # CHECK-NEXT: 3 7 2.00 vpermi2b %zmm16, %zmm17, %zmm19 {%k1} {z}
55 # CHECK-NEXT: 4 14 2.00 * vpermi2b (%rax), %zmm17, %zmm19 {%k1} {z}
56 # CHECK-NEXT: 3 5 2.00 vpermt2b %zmm16, %zmm17, %zmm19
57 # CHECK-NEXT: 4 12 2.00 * vpermt2b (%rax), %zmm17, %zmm19
58 # CHECK-NEXT: 3 7 2.00 vpermt2b %zmm16, %zmm17, %zmm19 {%k1}
59 # CHECK-NEXT: 4 14 2.00 * vpermt2b (%rax), %zmm17, %zmm19 {%k1}
60 # CHECK-NEXT: 3 7 2.00 vpermt2b %zmm16, %zmm17, %zmm19 {%k1} {z}
61 # CHECK-NEXT: 4 14 2.00 * vpermt2b (%rax), %zmm17, %zmm19 {%k1} {z}
62 # CHECK-NEXT: 1 3 1.00 vpmultishiftqb %zmm16, %zmm17, %zmm19
63 # CHECK-NEXT: 2 11 1.00 * vpmultishiftqb (%rax), %zmm17, %zmm19
64 # CHECK-NEXT: 2 11 1.00 * vpmultishiftqb (%rax){1to8}, %zmm17, %zmm19
65 # CHECK-NEXT: 1 5 1.00 vpmultishiftqb %zmm16, %zmm17, %zmm19 {%k1}
66 # CHECK-NEXT: 2 13 1.00 * vpmultishiftqb (%rax), %zmm17, %zmm19 {%k1}
67 # CHECK-NEXT: 2 13 1.00 * vpmultishiftqb (%rax){1to8}, %zmm17, %zmm19 {%k1}
68 # CHECK-NEXT: 1 5 1.00 vpmultishiftqb %zmm16, %zmm17, %zmm19 {%k1} {z}
69 # CHECK-NEXT: 2 13 1.00 * vpmultishiftqb (%rax), %zmm17, %zmm19 {%k1} {z}
70 # CHECK-NEXT: 2 13 1.00 * vpmultishiftqb (%rax){1to8}, %zmm17, %zmm19 {%k1} {z}
72 # CHECK: Resources:
73 # CHECK-NEXT: [0] - SPRPort00
74 # CHECK-NEXT: [1] - SPRPort01
75 # CHECK-NEXT: [2] - SPRPort02
76 # CHECK-NEXT: [3] - SPRPort03
77 # CHECK-NEXT: [4] - SPRPort04
78 # CHECK-NEXT: [5] - SPRPort05
79 # CHECK-NEXT: [6] - SPRPort06
80 # CHECK-NEXT: [7] - SPRPort07
81 # CHECK-NEXT: [8] - SPRPort08
82 # CHECK-NEXT: [9] - SPRPort09
83 # CHECK-NEXT: [10] - SPRPort10
84 # CHECK-NEXT: [11] - SPRPort11
85 # CHECK-NEXT: [12] - SPRPortInvalid
87 # CHECK: Resource pressure per iteration:
88 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12]
89 # CHECK-NEXT: 6.00 - 5.00 5.00 - 45.00 - - - - - 5.00 -
91 # CHECK: Resource pressure by instruction:
92 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] Instructions:
93 # CHECK-NEXT: - - - - - 1.00 - - - - - - - vpermb %zmm16, %zmm17, %zmm19
94 # CHECK-NEXT: - - 0.33 0.33 - 1.00 - - - - - 0.33 - vpermb (%rax), %zmm17, %zmm19
95 # CHECK-NEXT: - - - - - 1.00 - - - - - - - vpermb %zmm16, %zmm17, %zmm19 {%k1}
96 # CHECK-NEXT: - - 0.33 0.33 - 1.00 - - - - - 0.33 - vpermb (%rax), %zmm17, %zmm19 {%k1}
97 # CHECK-NEXT: - - - - - 1.00 - - - - - - - vpermb %zmm16, %zmm17, %zmm19 {%k1} {z}
98 # CHECK-NEXT: - - 0.33 0.33 - 1.00 - - - - - 0.33 - vpermb (%rax), %zmm17, %zmm19 {%k1} {z}
99 # CHECK-NEXT: 0.50 - - - - 2.50 - - - - - - - vpermi2b %zmm16, %zmm17, %zmm19
100 # CHECK-NEXT: 0.50 - 0.33 0.33 - 2.50 - - - - - 0.33 - vpermi2b (%rax), %zmm17, %zmm19
101 # CHECK-NEXT: 0.50 - - - - 2.50 - - - - - - - vpermi2b %zmm16, %zmm17, %zmm19 {%k1}
102 # CHECK-NEXT: 0.50 - 0.33 0.33 - 2.50 - - - - - 0.33 - vpermi2b (%rax), %zmm17, %zmm19 {%k1}
103 # CHECK-NEXT: 0.50 - - - - 2.50 - - - - - - - vpermi2b %zmm16, %zmm17, %zmm19 {%k1} {z}
104 # CHECK-NEXT: 0.50 - 0.33 0.33 - 2.50 - - - - - 0.33 - vpermi2b (%rax), %zmm17, %zmm19 {%k1} {z}
105 # CHECK-NEXT: 0.50 - - - - 2.50 - - - - - - - vpermt2b %zmm16, %zmm17, %zmm19
106 # CHECK-NEXT: 0.50 - 0.33 0.33 - 2.50 - - - - - 0.33 - vpermt2b (%rax), %zmm17, %zmm19
107 # CHECK-NEXT: 0.50 - - - - 2.50 - - - - - - - vpermt2b %zmm16, %zmm17, %zmm19 {%k1}
108 # CHECK-NEXT: 0.50 - 0.33 0.33 - 2.50 - - - - - 0.33 - vpermt2b (%rax), %zmm17, %zmm19 {%k1}
109 # CHECK-NEXT: 0.50 - - - - 2.50 - - - - - - - vpermt2b %zmm16, %zmm17, %zmm19 {%k1} {z}
110 # CHECK-NEXT: 0.50 - 0.33 0.33 - 2.50 - - - - - 0.33 - vpermt2b (%rax), %zmm17, %zmm19 {%k1} {z}
111 # CHECK-NEXT: - - - - - 1.00 - - - - - - - vpmultishiftqb %zmm16, %zmm17, %zmm19
112 # CHECK-NEXT: - - 0.33 0.33 - 1.00 - - - - - 0.33 - vpmultishiftqb (%rax), %zmm17, %zmm19
113 # CHECK-NEXT: - - 0.33 0.33 - 1.00 - - - - - 0.33 - vpmultishiftqb (%rax){1to8}, %zmm17, %zmm19
114 # CHECK-NEXT: - - - - - 1.00 - - - - - - - vpmultishiftqb %zmm16, %zmm17, %zmm19 {%k1}
115 # CHECK-NEXT: - - 0.33 0.33 - 1.00 - - - - - 0.33 - vpmultishiftqb (%rax), %zmm17, %zmm19 {%k1}
116 # CHECK-NEXT: - - 0.33 0.33 - 1.00 - - - - - 0.33 - vpmultishiftqb (%rax){1to8}, %zmm17, %zmm19 {%k1}
117 # CHECK-NEXT: - - - - - 1.00 - - - - - - - vpmultishiftqb %zmm16, %zmm17, %zmm19 {%k1} {z}
118 # CHECK-NEXT: - - 0.33 0.33 - 1.00 - - - - - 0.33 - vpmultishiftqb (%rax), %zmm17, %zmm19 {%k1} {z}
119 # CHECK-NEXT: - - 0.33 0.33 - 1.00 - - - - - 0.33 - vpmultishiftqb (%rax){1to8}, %zmm17, %zmm19 {%k1} {z}