Lines Matching refs:GCN

1 ; RUN: llc -march=amdgcn -verify-machineinstrs < %s | FileCheck -check-prefix=SI -check-prefix=GCN
2 …rch=amdgcn -mcpu=tonga -verify-machineinstrs < %s | FileCheck -check-prefix=VI -check-prefix=GCN %s
10 ; GCN-LABEL: {{^}}test_sgpr_use_twice_binop:
11 ; GCN: s_load_dword [[SGPR:s[0-9]+]],
12 ; GCN: v_add_f32_e64 [[RESULT:v[0-9]+]], [[SGPR]], [[SGPR]]
13 ; GCN: buffer_store_dword [[RESULT]]
20 ; GCN-LABEL: {{^}}test_sgpr_use_three_ternary_op:
21 ; GCN: s_load_dword [[SGPR:s[0-9]+]],
22 ; GCN: v_fma_f32 [[RESULT:v[0-9]+]], [[SGPR]], [[SGPR]], [[SGPR]]
23 ; GCN: buffer_store_dword [[RESULT]]
30 ; GCN-LABEL: {{^}}test_sgpr_use_twice_ternary_op_a_a_b:
35 ; GCN: v_mov_b32_e32 [[VGPR1:v[0-9]+]], [[SGPR1]]
36 ; GCN: v_fma_f32 [[RESULT:v[0-9]+]], [[SGPR0]], [[SGPR0]], [[VGPR1]]
37 ; GCN: buffer_store_dword [[RESULT]]
44 ; GCN-LABEL: {{^}}test_use_s_v_s:
45 ; GCN-DAG: s_load_dword [[SA:s[0-9]+]], s{{\[[0-9]+:[0-9]+\]}}, {{0xb|0x2c}}
46 ; GCN-DAG: s_load_dword [[SB:s[0-9]+]], s{{\[[0-9]+:[0-9]+\]}}, {{0xc|0x30}}
48 ; GCN: buffer_load_dword [[VA0:v[0-9]+]]
49 ; GCN-NOT: v_mov_b32
50 ; GCN: buffer_load_dword [[VA1:v[0-9]+]]
52 ; GCN-NOT: v_mov_b32
53 ; GCN: v_mov_b32_e32 [[VB:v[0-9]+]], [[SB]]
54 ; GCN-NOT: v_mov_b32
56 ; GCN-DAG: v_fma_f32 [[RESULT0:v[0-9]+]], [[VA0]], [[SA]], [[VB]]
57 ; GCN-DAG: v_fma_f32 [[RESULT1:v[0-9]+]], [[VA1]], [[SA]], [[VB]]
58 ; GCN: buffer_store_dword [[RESULT0]]
59 ; GCN: buffer_store_dword [[RESULT1]]
70 ; GCN-LABEL: {{^}}test_sgpr_use_twice_ternary_op_a_b_a:
75 ; GCN: v_mov_b32_e32 [[VGPR1:v[0-9]+]], [[SGPR1]]
76 ; GCN: v_fma_f32 [[RESULT:v[0-9]+]], [[VGPR1]], [[SGPR0]], [[SGPR0]]
77 ; GCN: buffer_store_dword [[RESULT]]
84 ; GCN-LABEL: {{^}}test_sgpr_use_twice_ternary_op_b_a_a:
89 ; GCN: v_mov_b32_e32 [[VGPR1:v[0-9]+]], [[SGPR1]]
90 ; GCN: v_fma_f32 [[RESULT:v[0-9]+]], [[SGPR0]], [[VGPR1]], [[SGPR0]]
91 ; GCN: buffer_store_dword [[RESULT]]
98 ; GCN-LABEL: {{^}}test_sgpr_use_twice_ternary_op_a_a_imm:
99 ; GCN: s_load_dword [[SGPR:s[0-9]+]]
100 ; GCN: v_fma_f32 [[RESULT:v[0-9]+]], [[SGPR]], [[SGPR]], 2.0
101 ; GCN: buffer_store_dword [[RESULT]]
108 ; GCN-LABEL: {{^}}test_sgpr_use_twice_ternary_op_a_imm_a:
109 ; GCN: s_load_dword [[SGPR:s[0-9]+]]
110 ; GCN: v_fma_f32 [[RESULT:v[0-9]+]], [[SGPR]], 2.0, [[SGPR]]
111 ; GCN: buffer_store_dword [[RESULT]]
119 ; GCN-LABEL: {{^}}test_sgpr_use_twice_ternary_op_imm_a_a:
120 ; GCN: s_load_dword [[SGPR:s[0-9]+]]
121 ; GCN: v_div_fixup_f32 [[RESULT:v[0-9]+]], 2.0, [[SGPR]], [[SGPR]]
122 ; GCN: buffer_store_dword [[RESULT]]
129 ; GCN-LABEL: {{^}}test_sgpr_use_twice_ternary_op_a_a_kimm:
130 ; GCN-DAG: s_load_dword [[SGPR:s[0-9]+]]
131 ; GCN-DAG: v_mov_b32_e32 [[VK:v[0-9]+]], 0x44800000
132 ; GCN: v_fma_f32 [[RESULT:v[0-9]+]], [[SGPR]], [[SGPR]], [[VK]]
133 ; GCN: buffer_store_dword [[RESULT]]
140 ; GCN-LABEL: {{^}}test_literal_use_twice_ternary_op_k_k_s:
141 ; GCN-DAG: s_load_dword [[SGPR:s[0-9]+]]
142 ; GCN-DAG: v_mov_b32_e32 [[VK:v[0-9]+]], 0x44800000
143 ; GCN: v_fma_f32 [[RESULT0:v[0-9]+]], [[VK]], [[VK]], [[SGPR]]
144 ; GCN: buffer_store_dword [[RESULT0]]
151 ; GCN-LABEL: {{^}}test_literal_use_twice_ternary_op_k_k_s_x2:
152 ; GCN-DAG: s_load_dword [[SGPR0:s[0-9]+]], s{{\[[0-9]+:[0-9]+\]}}, {{0xb|0x2c}}
153 ; GCN-DAG: s_load_dword [[SGPR1:s[0-9]+]], s{{\[[0-9]+:[0-9]+\]}}, {{0xc|0x30}}
154 ; GCN-DAG: v_mov_b32_e32 [[VK:v[0-9]+]], 0x44800000
155 ; GCN-DAG: v_fma_f32 [[RESULT0:v[0-9]+]], [[VK]], [[VK]], [[SGPR0]]
156 ; GCN-DAG: v_fma_f32 [[RESULT1:v[0-9]+]], [[VK]], [[VK]], [[SGPR1]]
157 ; GCN: buffer_store_dword [[RESULT0]]
158 ; GCN: buffer_store_dword [[RESULT1]]
159 ; GCN: s_endpgm
168 ; GCN-LABEL: {{^}}test_literal_use_twice_ternary_op_k_s_k:
169 ; GCN-DAG: s_load_dword [[SGPR:s[0-9]+]]
170 ; GCN-DAG: v_mov_b32_e32 [[VK:v[0-9]+]], 0x44800000
171 ; GCN: v_fma_f32 [[RESULT:v[0-9]+]], [[SGPR]], [[VK]], [[VK]]
172 ; GCN: buffer_store_dword [[RESULT]]
179 ; GCN-LABEL: {{^}}test_literal_use_twice_ternary_op_k_s_k_x2:
180 ; GCN-DAG: s_load_dword [[SGPR0:s[0-9]+]], s{{\[[0-9]+:[0-9]+\]}}, {{0xb|0x2c}}
181 ; GCN-DAG: s_load_dword [[SGPR1:s[0-9]+]], s{{\[[0-9]+:[0-9]+\]}}, {{0xc|0x30}}
182 ; GCN-DAG: v_mov_b32_e32 [[VK:v[0-9]+]], 0x44800000
183 ; GCN-DAG: v_fma_f32 [[RESULT0:v[0-9]+]], [[SGPR0]], [[VK]], [[VK]]
184 ; GCN-DAG: v_fma_f32 [[RESULT1:v[0-9]+]], [[SGPR1]], [[VK]], [[VK]]
185 ; GCN: buffer_store_dword [[RESULT0]]
186 ; GCN: buffer_store_dword [[RESULT1]]
187 ; GCN: s_endpgm
196 ; GCN-LABEL: {{^}}test_literal_use_twice_ternary_op_s_k_k:
197 ; GCN-DAG: s_load_dword [[SGPR:s[0-9]+]]
198 ; GCN-DAG: v_mov_b32_e32 [[VK:v[0-9]+]], 0x44800000
199 ; GCN: v_fma_f32 [[RESULT:v[0-9]+]], [[SGPR]], [[VK]], [[VK]]
200 ; GCN: buffer_store_dword [[RESULT]]
207 ; GCN-LABEL: {{^}}test_literal_use_twice_ternary_op_s_k_k_x2:
208 ; GCN-DAG: s_load_dword [[SGPR0:s[0-9]+]], s{{\[[0-9]+:[0-9]+\]}}, {{0xb|0x2c}}
209 ; GCN-DAG: s_load_dword [[SGPR1:s[0-9]+]], s{{\[[0-9]+:[0-9]+\]}}, {{0xc|0x30}}
210 ; GCN-DAG: v_mov_b32_e32 [[VK:v[0-9]+]], 0x44800000
211 ; GCN-DAG: v_fma_f32 [[RESULT0:v[0-9]+]], [[SGPR0]], [[VK]], [[VK]]
212 ; GCN-DAG: v_fma_f32 [[RESULT1:v[0-9]+]], [[SGPR1]], [[VK]], [[VK]]
213 ; GCN: buffer_store_dword [[RESULT0]]
214 ; GCN: buffer_store_dword [[RESULT1]]
215 ; GCN: s_endpgm
224 ; GCN-LABEL: {{^}}test_s0_s1_k_f32:
225 ; GCN-DAG: s_load_dword [[SGPR0:s[0-9]+]], s{{\[[0-9]+:[0-9]+\]}}, {{0xb|0x2c}}
226 ; GCN-DAG: s_load_dword [[SGPR1:s[0-9]+]], s{{\[[0-9]+:[0-9]+\]}}, {{0xc|0x30}}
227 ; GCN-DAG: v_mov_b32_e32 [[VK0:v[0-9]+]], 0x44800000
228 ; GCN-DAG: v_mov_b32_e32 [[VS1:v[0-9]+]], [[SGPR1]]
230 ; GCN-DAG: v_fma_f32 [[RESULT0:v[0-9]+]], [[VS1]], [[SGPR0]], [[VK0]]
231 ; GCN-DAG: v_mov_b32_e32 [[VK1:v[0-9]+]], 0x45800000
232 ; GCN-DAG: v_fma_f32 [[RESULT1:v[0-9]+]], [[SGPR0]], [[VS1]], [[VK1]]
234 ; GCN: buffer_store_dword [[RESULT0]]
235 ; GCN: buffer_store_dword [[RESULT1]]
245 ; GCN-LABEL: {{^}}test_s0_s1_k_f64:
246 ; GCN-DAG: s_load_dwordx2 [[SGPR0:s\[[0-9]+:[0-9]+\]]], s{{\[[0-9]+:[0-9]+\]}}, {{0xb|0x2c}}
247 ; GCN-DAG: s_load_dwordx2 s{{\[}}[[SGPR1_SUB0:[0-9]+]]:[[SGPR1_SUB1:[0-9]+]]{{\]}}, s{{\[[0-9]+:[0-…
248 ; GCN-DAG: v_mov_b32_e32 v[[VK0_SUB1:[0-9]+]], 0x40900000
249 ; GCN-DAG: v_mov_b32_e32 v[[VZERO:[0-9]+]], 0{{$}}
251 ; GCN-DAG: v_mov_b32_e32 v[[VS1_SUB0:[0-9]+]], s[[SGPR1_SUB0]]
252 ; GCN-DAG: v_mov_b32_e32 v[[VS1_SUB1:[0-9]+]], s[[SGPR1_SUB1]]
253 ; GCN: v_fma_f64 [[RESULT0:v\[[0-9]+:[0-9]+\]]], v{{\[}}[[VS1_SUB0]]:[[VS1_SUB1]]{{\]}}, [[SGPR0]],…
256 ; GCN: v_mov_b32_e32 v[[VK1_SUB1:[0-9]+]], 0x40b00000
257 ; GCN: v_fma_f64 [[RESULT1:v\[[0-9]+:[0-9]+\]]], [[SGPR0]], v{{\[}}[[VS1_SUB0]]:[[VS1_SUB1]]{{\]}},…
259 ; GCN: buffer_store_dwordx2 [[RESULT0]]
260 ; GCN: buffer_store_dwordx2 [[RESULT1]]