annotate llvm/test/CodeGen/AMDGPU/madak-inline-constant.mir @ 206:f17a3b42b08b

Added tag before-12 for changeset b7591485f4cd
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 07 Jun 2021 21:25:57 +0900
parents 1d019706d866
children 2e18cbf3894f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 # RUN: llc -march=amdgcn -run-pass peephole-opt -verify-machineinstrs -o - %s | FileCheck -check-prefix=GCN %s
anatofuz
parents:
diff changeset
2
anatofuz
parents:
diff changeset
3
anatofuz
parents:
diff changeset
4 # GCN-LABEL: bb.0:
anatofuz
parents:
diff changeset
5 # GCN: V_MOV_B32_e32 1092616192
anatofuz
parents:
diff changeset
6 # GCN: S_MOV_B32 1082130432
anatofuz
parents:
diff changeset
7 # GCN: %3:vgpr_32 = V_MADAK_F32 1082130432, killed %0, 1092616192, implicit $exec
anatofuz
parents:
diff changeset
8
anatofuz
parents:
diff changeset
9 ---
anatofuz
parents:
diff changeset
10 name: test src1-inlined
anatofuz
parents:
diff changeset
11 body: |
anatofuz
parents:
diff changeset
12 bb.0:
anatofuz
parents:
diff changeset
13 liveins: $vgpr0, $sgpr0_sgpr1
anatofuz
parents:
diff changeset
14
anatofuz
parents:
diff changeset
15 %0:vgpr_32 = COPY $vgpr0
anatofuz
parents:
diff changeset
16 %17:vgpr_32 = V_MOV_B32_e32 1092616192, implicit $exec
anatofuz
parents:
diff changeset
17 %18:sreg_32 = S_MOV_B32 1082130432
anatofuz
parents:
diff changeset
18 %19:vgpr_32 = V_MAC_F32_e64 0, killed %0, 0, killed %18, 0, %17, 0, 0, implicit $exec
anatofuz
parents:
diff changeset
19
anatofuz
parents:
diff changeset
20 ...
anatofuz
parents:
diff changeset
21
anatofuz
parents:
diff changeset
22
anatofuz
parents:
diff changeset
23 # GCN-LABEL: bb.0:
anatofuz
parents:
diff changeset
24 # GCN: V_MOV_B32_e32 1092616192
anatofuz
parents:
diff changeset
25 # GCN: S_MOV_B32 1082130432
anatofuz
parents:
diff changeset
26 # GCN: %3:vgpr_32 = V_MADAK_F32 1082130432, killed %0, 1092616192, implicit $exec
anatofuz
parents:
diff changeset
27
anatofuz
parents:
diff changeset
28 ---
anatofuz
parents:
diff changeset
29 name: test src0-inlined
anatofuz
parents:
diff changeset
30 body: |
anatofuz
parents:
diff changeset
31 bb.0:
anatofuz
parents:
diff changeset
32 liveins: $vgpr0, $sgpr0_sgpr1
anatofuz
parents:
diff changeset
33
anatofuz
parents:
diff changeset
34 %0:vgpr_32 = COPY $vgpr0
anatofuz
parents:
diff changeset
35 %17:vgpr_32 = V_MOV_B32_e32 1092616192, implicit $exec
anatofuz
parents:
diff changeset
36 %18:sreg_32 = S_MOV_B32 1082130432
anatofuz
parents:
diff changeset
37 %19:vgpr_32 = V_MAC_F32_e64 0, killed %18, 0, killed %0, 0, %17, 0, 0, implicit $exec
anatofuz
parents:
diff changeset
38
anatofuz
parents:
diff changeset
39 ...
anatofuz
parents:
diff changeset
40
anatofuz
parents:
diff changeset
41 # GCN-LABEL: bb.0:
anatofuz
parents:
diff changeset
42 # GCN: V_MOV_B32_e32 1092616192
anatofuz
parents:
diff changeset
43 # GCN: S_MOV_B32 1082130432
anatofuz
parents:
diff changeset
44 # GCN: %3:vgpr_32 = V_MADAK_F32 killed %0, killed %0, 1092616192, implicit $exec
anatofuz
parents:
diff changeset
45
anatofuz
parents:
diff changeset
46 ---
anatofuz
parents:
diff changeset
47 name: test none-inlined
anatofuz
parents:
diff changeset
48 body: |
anatofuz
parents:
diff changeset
49 bb.0:
anatofuz
parents:
diff changeset
50 liveins: $vgpr0, $sgpr0_sgpr1
anatofuz
parents:
diff changeset
51
anatofuz
parents:
diff changeset
52 %0:vgpr_32 = COPY $vgpr0
anatofuz
parents:
diff changeset
53 %17:vgpr_32 = V_MOV_B32_e32 1092616192, implicit $exec
anatofuz
parents:
diff changeset
54 %18:sreg_32 = S_MOV_B32 1082130432
anatofuz
parents:
diff changeset
55 %19:vgpr_32 = V_MAC_F32_e64 0, killed %0, 0, killed %0, 0, %17, 0, 0, implicit $exec
anatofuz
parents:
diff changeset
56
anatofuz
parents:
diff changeset
57 ...
anatofuz
parents:
diff changeset
58
anatofuz
parents:
diff changeset
59 # GCN-LABEL: bb.0:
anatofuz
parents:
diff changeset
60 # GCN: V_MOV_B32_e32 1092616192
anatofuz
parents:
diff changeset
61 # GCN: V_MOV_B32_e32 1082130432
anatofuz
parents:
diff changeset
62 # GCN: %3:vgpr_32 = V_MADAK_F32 1082130432, killed %0, 1092616192, implicit $exec
anatofuz
parents:
diff changeset
63
anatofuz
parents:
diff changeset
64 ---
anatofuz
parents:
diff changeset
65 name: test src1-2vgprs-inlined
anatofuz
parents:
diff changeset
66 body: |
anatofuz
parents:
diff changeset
67 bb.0:
anatofuz
parents:
diff changeset
68 liveins: $vgpr0, $sgpr0_sgpr1
anatofuz
parents:
diff changeset
69
anatofuz
parents:
diff changeset
70 %0:vgpr_32 = COPY $vgpr0
anatofuz
parents:
diff changeset
71 %17:vgpr_32 = V_MOV_B32_e32 1092616192, implicit $exec
anatofuz
parents:
diff changeset
72 %18:vgpr_32 = V_MOV_B32_e32 1082130432, implicit $exec
anatofuz
parents:
diff changeset
73 %19:vgpr_32 = V_MAC_F32_e64 0, killed %0, 0, killed %18, 0, %17, 0, 0, implicit $exec
anatofuz
parents:
diff changeset
74
anatofuz
parents:
diff changeset
75 ...
anatofuz
parents:
diff changeset
76
anatofuz
parents:
diff changeset
77
anatofuz
parents:
diff changeset
78 # GCN-LABEL: bb.0:
anatofuz
parents:
diff changeset
79 # GCN: V_MOV_B32_e32 1092616192
anatofuz
parents:
diff changeset
80 # GCN: V_MOV_B32_e32 1082130432
anatofuz
parents:
diff changeset
81 # GCN: %3:vgpr_32 = V_MADAK_F32 1082130432, killed %0, 1092616192, implicit $exec
anatofuz
parents:
diff changeset
82
anatofuz
parents:
diff changeset
83 ---
anatofuz
parents:
diff changeset
84 name: test src0-2vgprs-inlined
anatofuz
parents:
diff changeset
85 body: |
anatofuz
parents:
diff changeset
86 bb.0:
anatofuz
parents:
diff changeset
87 liveins: $vgpr0, $sgpr0_sgpr1
anatofuz
parents:
diff changeset
88
anatofuz
parents:
diff changeset
89 %0:vgpr_32 = COPY $vgpr0
anatofuz
parents:
diff changeset
90 %17:vgpr_32 = V_MOV_B32_e32 1092616192, implicit $exec
anatofuz
parents:
diff changeset
91 %18:vgpr_32 = V_MOV_B32_e32 1082130432, implicit $exec
anatofuz
parents:
diff changeset
92 %19:vgpr_32 = V_MAC_F32_e64 0, killed %18, 0, killed %0, 0, %17, 0, 0, implicit $exec
anatofuz
parents:
diff changeset
93
anatofuz
parents:
diff changeset
94 ...
anatofuz
parents:
diff changeset
95
anatofuz
parents:
diff changeset
96 # GCN-LABEL: bb.0:
anatofuz
parents:
diff changeset
97 # GCN: V_MOV_B32_e32 1092616192, implicit $exec
anatofuz
parents:
diff changeset
98 # GCN: S_MOV_B32 1082130432
anatofuz
parents:
diff changeset
99 # GCN: V_MADAK_F32 1082130432, killed $vgpr1, 1092616192, implicit $exec
anatofuz
parents:
diff changeset
100
anatofuz
parents:
diff changeset
101 ---
anatofuz
parents:
diff changeset
102 name: test src0-phys-vgpr
anatofuz
parents:
diff changeset
103 body: |
anatofuz
parents:
diff changeset
104 bb.0:
anatofuz
parents:
diff changeset
105 liveins: $vgpr0, $sgpr0_sgpr1
anatofuz
parents:
diff changeset
106
anatofuz
parents:
diff changeset
107
anatofuz
parents:
diff changeset
108 $vgpr1 = COPY $vgpr0
anatofuz
parents:
diff changeset
109 %17:vgpr_32 = V_MOV_B32_e32 1092616192, implicit $exec
anatofuz
parents:
diff changeset
110 %18:sgpr_32 = S_MOV_B32 1082130432
anatofuz
parents:
diff changeset
111 %19:vgpr_32 = V_MAC_F32_e64 0, killed $vgpr1, 0, killed %18, 0, %17, 0, 0, implicit $exec
anatofuz
parents:
diff changeset
112
anatofuz
parents:
diff changeset
113 ...
anatofuz
parents:
diff changeset
114
anatofuz
parents:
diff changeset
115 # GCN-LABEL: bb.0:
anatofuz
parents:
diff changeset
116 # GCN: V_MOV_B32_e32 1092616192, implicit $exec
anatofuz
parents:
diff changeset
117 # GCN: S_MOV_B32 1082130432
anatofuz
parents:
diff changeset
118 # GCN: V_MADAK_F32 1082130432, killed $vgpr0, 1092616192, implicit $exec
anatofuz
parents:
diff changeset
119
anatofuz
parents:
diff changeset
120 ---
anatofuz
parents:
diff changeset
121 name: test src1-phys-vgpr
anatofuz
parents:
diff changeset
122 body: |
anatofuz
parents:
diff changeset
123 bb.0:
anatofuz
parents:
diff changeset
124 liveins: $vgpr0, $sgpr0_sgpr1
anatofuz
parents:
diff changeset
125
anatofuz
parents:
diff changeset
126
anatofuz
parents:
diff changeset
127 %0:vgpr_32 = COPY $vgpr0
anatofuz
parents:
diff changeset
128 %17:vgpr_32 = V_MOV_B32_e32 1092616192, implicit $exec
anatofuz
parents:
diff changeset
129 %18:sgpr_32 = S_MOV_B32 1082130432
anatofuz
parents:
diff changeset
130 %19:vgpr_32 = V_MAC_F32_e64 0, killed %18, 0, killed $vgpr0, 0, %17, 0, 0, implicit $exec
anatofuz
parents:
diff changeset
131
anatofuz
parents:
diff changeset
132 ...
anatofuz
parents:
diff changeset
133
anatofuz
parents:
diff changeset
134 # GCN-LABEL: bb.0:
anatofuz
parents:
diff changeset
135 # GCN: V_MOV_B32_e32 1092616192, implicit $exec
anatofuz
parents:
diff changeset
136 # GCN: V_MAC_F32_e64 0, killed $sgpr2, 0, killed %0, 0, %1, 0, 0, implicit $exec
anatofuz
parents:
diff changeset
137
anatofuz
parents:
diff changeset
138 ---
anatofuz
parents:
diff changeset
139 name: test src0-phys-sgpr
anatofuz
parents:
diff changeset
140 body: |
anatofuz
parents:
diff changeset
141 bb.0:
anatofuz
parents:
diff changeset
142 liveins: $vgpr0, $sgpr0_sgpr1, $sgpr2
anatofuz
parents:
diff changeset
143
anatofuz
parents:
diff changeset
144
anatofuz
parents:
diff changeset
145 %0:vgpr_32 = COPY $vgpr0
anatofuz
parents:
diff changeset
146 %17:vgpr_32 = V_MOV_B32_e32 1092616192, implicit $exec
anatofuz
parents:
diff changeset
147 %19:vgpr_32 = V_MAC_F32_e64 0, killed $sgpr2, 0, killed %0, 0, %17, 0, 0, implicit $exec
anatofuz
parents:
diff changeset
148
anatofuz
parents:
diff changeset
149 ...
anatofuz
parents:
diff changeset
150
anatofuz
parents:
diff changeset
151 # GCN-LABEL: bb.0:
anatofuz
parents:
diff changeset
152 # GCN: V_MOV_B32_e32 1092616192, implicit $exec
anatofuz
parents:
diff changeset
153 # GCN: V_MAC_F32_e64 0, killed %0, 0, killed $sgpr2, 0, %1, 0, 0, implicit $exec
anatofuz
parents:
diff changeset
154
anatofuz
parents:
diff changeset
155 ---
anatofuz
parents:
diff changeset
156 name: test src1-phys-sgpr
anatofuz
parents:
diff changeset
157 body: |
anatofuz
parents:
diff changeset
158 bb.0:
anatofuz
parents:
diff changeset
159 liveins: $vgpr0, $sgpr0_sgpr1, $sgpr2
anatofuz
parents:
diff changeset
160
anatofuz
parents:
diff changeset
161
anatofuz
parents:
diff changeset
162 %0:vgpr_32 = COPY $vgpr0
anatofuz
parents:
diff changeset
163 %17:vgpr_32 = V_MOV_B32_e32 1092616192, implicit $exec
anatofuz
parents:
diff changeset
164 %19:vgpr_32 = V_MAC_F32_e64 0, killed %0, 0, killed $sgpr2, 0, %17, 0, 0, implicit $exec
anatofuz
parents:
diff changeset
165
anatofuz
parents:
diff changeset
166 ...
anatofuz
parents:
diff changeset
167
anatofuz
parents:
diff changeset
168 # GCN-LABEL: bb.0:
anatofuz
parents:
diff changeset
169 # GCN: V_MOV_B32_e32 1092616192, implicit $exec
anatofuz
parents:
diff changeset
170 # GCN: $sgpr2 = S_MOV_B32 1082130432
anatofuz
parents:
diff changeset
171 # GCN: V_MADAK_F32 1082130432, killed %0, 1092616192, implicit $exec
anatofuz
parents:
diff changeset
172
anatofuz
parents:
diff changeset
173 ---
anatofuz
parents:
diff changeset
174 name: test src1-phys-sgpr-move
anatofuz
parents:
diff changeset
175 body: |
anatofuz
parents:
diff changeset
176 bb.0:
anatofuz
parents:
diff changeset
177 liveins: $vgpr0, $sgpr0_sgpr1
anatofuz
parents:
diff changeset
178
anatofuz
parents:
diff changeset
179
anatofuz
parents:
diff changeset
180 %0:vgpr_32 = COPY $vgpr0
anatofuz
parents:
diff changeset
181 %17:vgpr_32 = V_MOV_B32_e32 1092616192, implicit $exec
anatofuz
parents:
diff changeset
182 $sgpr2 = S_MOV_B32 1082130432
anatofuz
parents:
diff changeset
183 %19:vgpr_32 = V_MAC_F32_e64 0, killed %0, 0, killed $sgpr2, 0, %17, 0, 0, implicit $exec
anatofuz
parents:
diff changeset
184
anatofuz
parents:
diff changeset
185 ...