Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / tools / llvm-mca / X86 / Znver4 / resources-avx512gfni.s
blob501713d373cb8af48e5de1dad49a0691bc3c0315
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
4 vgf2p8affineinvqb $0, %zmm16, %zmm17, %zmm19
5 vgf2p8affineinvqb $0, (%rax), %zmm17, %zmm19
6 vgf2p8affineinvqb $0, (%rax){1to8}, %zmm17, %zmm19
7 vgf2p8affineinvqb $0, %zmm16, %zmm17, %zmm19 {k1}
8 vgf2p8affineinvqb $0, (%rax), %zmm17, %zmm19 {k1}
9 vgf2p8affineinvqb $0, (%rax){1to8}, %zmm17, %zmm19 {k1}
10 vgf2p8affineinvqb $0, %zmm16, %zmm17, %zmm19 {z}{k1}
11 vgf2p8affineinvqb $0, (%rax), %zmm17, %zmm19 {z}{k1}
12 vgf2p8affineinvqb $0, (%rax){1to8}, %zmm17, %zmm19 {z}{k1}
14 vgf2p8affineqb $0, %zmm16, %zmm17, %zmm19
15 vgf2p8affineqb $0, (%rax), %zmm17, %zmm19
16 vgf2p8affineqb $0, (%rax){1to8}, %zmm17, %zmm19
17 vgf2p8affineqb $0, %zmm16, %zmm17, %zmm19
18 vgf2p8affineqb $0, (%rax), %zmm17, %zmm19
19 vgf2p8affineqb $0, (%rax){1to8}, %zmm17, %zmm19
20 vgf2p8affineqb $0, %zmm16, %zmm17, %zmm19 {z}{k1}
21 vgf2p8affineqb $0, (%rax), %zmm17, %zmm19 {z}{k1}
22 vgf2p8affineqb $0, (%rax){1to8}, %zmm17, %zmm19 {z}{k1}
24 vgf2p8mulb %zmm16, %zmm17, %zmm19
25 vgf2p8mulb (%rax), %zmm17, %zmm19
26 vgf2p8mulb %zmm16, %zmm17, %zmm19 {k1}
27 vgf2p8mulb (%rax), %zmm17, %zmm19 {k1}
28 vgf2p8mulb %zmm16, %zmm17, %zmm19 {z}{k1}
29 vgf2p8mulb (%rax), %zmm17, %zmm19 {z}{k1}
31 # CHECK: Instruction Info:
32 # CHECK-NEXT: [1]: #uOps
33 # CHECK-NEXT: [2]: Latency
34 # CHECK-NEXT: [3]: RThroughput
35 # CHECK-NEXT: [4]: MayLoad
36 # CHECK-NEXT: [5]: MayStore
37 # CHECK-NEXT: [6]: HasSideEffects (U)
39 # CHECK: [1] [2] [3] [4] [5] [6] Instructions:
40 # CHECK-NEXT: 1 3 1.00 vgf2p8affineinvqb $0, %zmm16, %zmm17, %zmm19
41 # CHECK-NEXT: 1 10 1.00 * vgf2p8affineinvqb $0, (%rax), %zmm17, %zmm19
42 # CHECK-NEXT: 1 10 1.00 * vgf2p8affineinvqb $0, (%rax){1to8}, %zmm17, %zmm19
43 # CHECK-NEXT: 1 3 1.00 vgf2p8affineinvqb $0, %zmm16, %zmm17, %zmm19 {%k1}
44 # CHECK-NEXT: 1 10 1.00 * vgf2p8affineinvqb $0, (%rax), %zmm17, %zmm19 {%k1}
45 # CHECK-NEXT: 1 10 1.00 * vgf2p8affineinvqb $0, (%rax){1to8}, %zmm17, %zmm19 {%k1}
46 # CHECK-NEXT: 1 3 1.00 vgf2p8affineinvqb $0, %zmm16, %zmm17, %zmm19 {%k1} {z}
47 # CHECK-NEXT: 1 10 1.00 * vgf2p8affineinvqb $0, (%rax), %zmm17, %zmm19 {%k1} {z}
48 # CHECK-NEXT: 1 10 1.00 * vgf2p8affineinvqb $0, (%rax){1to8}, %zmm17, %zmm19 {%k1} {z}
49 # CHECK-NEXT: 1 3 1.00 vgf2p8affineqb $0, %zmm16, %zmm17, %zmm19
50 # CHECK-NEXT: 1 10 1.00 * vgf2p8affineqb $0, (%rax), %zmm17, %zmm19
51 # CHECK-NEXT: 1 10 1.00 * vgf2p8affineqb $0, (%rax){1to8}, %zmm17, %zmm19
52 # CHECK-NEXT: 1 3 1.00 vgf2p8affineqb $0, %zmm16, %zmm17, %zmm19
53 # CHECK-NEXT: 1 10 1.00 * vgf2p8affineqb $0, (%rax), %zmm17, %zmm19
54 # CHECK-NEXT: 1 10 1.00 * vgf2p8affineqb $0, (%rax){1to8}, %zmm17, %zmm19
55 # CHECK-NEXT: 1 3 1.00 vgf2p8affineqb $0, %zmm16, %zmm17, %zmm19 {%k1} {z}
56 # CHECK-NEXT: 1 10 1.00 * vgf2p8affineqb $0, (%rax), %zmm17, %zmm19 {%k1} {z}
57 # CHECK-NEXT: 1 10 1.00 * vgf2p8affineqb $0, (%rax){1to8}, %zmm17, %zmm19 {%k1} {z}
58 # CHECK-NEXT: 1 1 0.50 vgf2p8mulb %zmm16, %zmm17, %zmm19
59 # CHECK-NEXT: 1 8 0.50 * vgf2p8mulb (%rax), %zmm17, %zmm19
60 # CHECK-NEXT: 1 1 0.50 vgf2p8mulb %zmm16, %zmm17, %zmm19 {%k1}
61 # CHECK-NEXT: 1 8 0.50 * vgf2p8mulb (%rax), %zmm17, %zmm19 {%k1}
62 # CHECK-NEXT: 1 1 0.50 vgf2p8mulb %zmm16, %zmm17, %zmm19 {%k1} {z}
63 # CHECK-NEXT: 1 8 0.50 * vgf2p8mulb (%rax), %zmm17, %zmm19 {%k1} {z}
65 # CHECK: Resources:
66 # CHECK-NEXT: [0] - Zn4AGU0
67 # CHECK-NEXT: [1] - Zn4AGU1
68 # CHECK-NEXT: [2] - Zn4AGU2
69 # CHECK-NEXT: [3] - Zn4ALU0
70 # CHECK-NEXT: [4] - Zn4ALU1
71 # CHECK-NEXT: [5] - Zn4ALU2
72 # CHECK-NEXT: [6] - Zn4ALU3
73 # CHECK-NEXT: [7] - Zn4BRU1
74 # CHECK-NEXT: [8] - Zn4FP0
75 # CHECK-NEXT: [9] - Zn4FP1
76 # CHECK-NEXT: [10] - Zn4FP2
77 # CHECK-NEXT: [11] - Zn4FP3
78 # CHECK-NEXT: [12.0] - Zn4FP45
79 # CHECK-NEXT: [12.1] - Zn4FP45
80 # CHECK-NEXT: [13] - Zn4FPSt
81 # CHECK-NEXT: [14.0] - Zn4LSU
82 # CHECK-NEXT: [14.1] - Zn4LSU
83 # CHECK-NEXT: [14.2] - Zn4LSU
84 # CHECK-NEXT: [15.0] - Zn4Load
85 # CHECK-NEXT: [15.1] - Zn4Load
86 # CHECK-NEXT: [15.2] - Zn4Load
87 # CHECK-NEXT: [16.0] - Zn4Store
88 # CHECK-NEXT: [16.1] - Zn4Store
90 # CHECK: Resource pressure per iteration:
91 # 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]
92 # CHECK-NEXT: - - - - - - - - 21.00 3.00 3.00 21.00 7.50 7.50 - 5.00 5.00 5.00 5.00 5.00 5.00 - -
94 # CHECK: Resource pressure by instruction:
95 # 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:
96 # CHECK-NEXT: - - - - - - - - 1.00 - - 1.00 - - - - - - - - - - - vgf2p8affineinvqb $0, %zmm16, %zmm17, %zmm19
97 # CHECK-NEXT: - - - - - - - - 1.00 - - 1.00 0.50 0.50 - 0.33 0.33 0.33 0.33 0.33 0.33 - - vgf2p8affineinvqb $0, (%rax), %zmm17, %zmm19
98 # CHECK-NEXT: - - - - - - - - 1.00 - - 1.00 0.50 0.50 - 0.33 0.33 0.33 0.33 0.33 0.33 - - vgf2p8affineinvqb $0, (%rax){1to8}, %zmm17, %zmm19
99 # CHECK-NEXT: - - - - - - - - 1.00 - - 1.00 - - - - - - - - - - - vgf2p8affineinvqb $0, %zmm16, %zmm17, %zmm19 {%k1}
100 # CHECK-NEXT: - - - - - - - - 1.00 - - 1.00 0.50 0.50 - 0.33 0.33 0.33 0.33 0.33 0.33 - - vgf2p8affineinvqb $0, (%rax), %zmm17, %zmm19 {%k1}
101 # CHECK-NEXT: - - - - - - - - 1.00 - - 1.00 0.50 0.50 - 0.33 0.33 0.33 0.33 0.33 0.33 - - vgf2p8affineinvqb $0, (%rax){1to8}, %zmm17, %zmm19 {%k1}
102 # CHECK-NEXT: - - - - - - - - 1.00 - - 1.00 - - - - - - - - - - - vgf2p8affineinvqb $0, %zmm16, %zmm17, %zmm19 {%k1} {z}
103 # CHECK-NEXT: - - - - - - - - 1.00 - - 1.00 0.50 0.50 - 0.33 0.33 0.33 0.33 0.33 0.33 - - vgf2p8affineinvqb $0, (%rax), %zmm17, %zmm19 {%k1} {z}
104 # CHECK-NEXT: - - - - - - - - 1.00 - - 1.00 0.50 0.50 - 0.33 0.33 0.33 0.33 0.33 0.33 - - vgf2p8affineinvqb $0, (%rax){1to8}, %zmm17, %zmm19 {%k1} {z}
105 # CHECK-NEXT: - - - - - - - - 1.00 - - 1.00 - - - - - - - - - - - vgf2p8affineqb $0, %zmm16, %zmm17, %zmm19
106 # CHECK-NEXT: - - - - - - - - 1.00 - - 1.00 0.50 0.50 - 0.33 0.33 0.33 0.33 0.33 0.33 - - vgf2p8affineqb $0, (%rax), %zmm17, %zmm19
107 # CHECK-NEXT: - - - - - - - - 1.00 - - 1.00 0.50 0.50 - 0.33 0.33 0.33 0.33 0.33 0.33 - - vgf2p8affineqb $0, (%rax){1to8}, %zmm17, %zmm19
108 # CHECK-NEXT: - - - - - - - - 1.00 - - 1.00 - - - - - - - - - - - vgf2p8affineqb $0, %zmm16, %zmm17, %zmm19
109 # CHECK-NEXT: - - - - - - - - 1.00 - - 1.00 0.50 0.50 - 0.33 0.33 0.33 0.33 0.33 0.33 - - vgf2p8affineqb $0, (%rax), %zmm17, %zmm19
110 # CHECK-NEXT: - - - - - - - - 1.00 - - 1.00 0.50 0.50 - 0.33 0.33 0.33 0.33 0.33 0.33 - - vgf2p8affineqb $0, (%rax){1to8}, %zmm17, %zmm19
111 # CHECK-NEXT: - - - - - - - - 1.00 - - 1.00 - - - - - - - - - - - vgf2p8affineqb $0, %zmm16, %zmm17, %zmm19 {%k1} {z}
112 # CHECK-NEXT: - - - - - - - - 1.00 - - 1.00 0.50 0.50 - 0.33 0.33 0.33 0.33 0.33 0.33 - - vgf2p8affineqb $0, (%rax), %zmm17, %zmm19 {%k1} {z}
113 # CHECK-NEXT: - - - - - - - - 1.00 - - 1.00 0.50 0.50 - 0.33 0.33 0.33 0.33 0.33 0.33 - - vgf2p8affineqb $0, (%rax){1to8}, %zmm17, %zmm19 {%k1} {z}
114 # CHECK-NEXT: - - - - - - - - 0.50 0.50 0.50 0.50 - - - - - - - - - - - vgf2p8mulb %zmm16, %zmm17, %zmm19
115 # 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 - - vgf2p8mulb (%rax), %zmm17, %zmm19
116 # CHECK-NEXT: - - - - - - - - 0.50 0.50 0.50 0.50 - - - - - - - - - - - vgf2p8mulb %zmm16, %zmm17, %zmm19 {%k1}
117 # 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 - - vgf2p8mulb (%rax), %zmm17, %zmm19 {%k1}
118 # CHECK-NEXT: - - - - - - - - 0.50 0.50 0.50 0.50 - - - - - - - - - - - vgf2p8mulb %zmm16, %zmm17, %zmm19 {%k1} {z}
119 # 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 - - vgf2p8mulb (%rax), %zmm17, %zmm19 {%k1} {z}