Lines Matching refs:GCN

1 ; RUN: llc -march=amdgcn -mcpu=tahiti < %s | FileCheck -check-prefix=FAST64 -check-prefix=GCN %s
2 ; RUN: llc -march=amdgcn -mcpu=bonaire < %s | FileCheck -check-prefix=SLOW64 -check-prefix=GCN %s
6 ; GCN-LABEL: {{^}}lshr_i64_35:
7 ; GCN-DAG: buffer_load_dword [[VAL:v[0-9]+]]
8 ; GCN-DAG: v_lshrrev_b32_e32 v[[LO:[0-9]+]], 3, [[VAL]]
9 ; GCN-DAG: v_mov_b32_e32 v[[HI:[0-9]+]], 0{{$}}
10 ; GCN: buffer_store_dwordx2 v{{\[}}[[LO]]:[[HI]]{{\]}}
18 ; GCN-LABEL: {{^}}lshr_i64_63:
19 ; GCN-DAG: buffer_load_dword [[VAL:v[0-9]+]]
20 ; GCN-DAG: v_lshrrev_b32_e32 v[[LO:[0-9]+]], 31, [[VAL]]
21 ; GCN-DAG: v_mov_b32_e32 v[[HI:[0-9]+]], 0{{$}}
22 ; GCN: buffer_store_dwordx2 v{{\[}}[[LO]]:[[HI]]{{\]}}
30 ; GCN-LABEL: {{^}}lshr_i64_33:
31 ; GCN-DAG: buffer_load_dword [[VAL:v[0-9]+]]
32 ; GCN-DAG: v_lshrrev_b32_e32 v[[LO:[0-9]+]], 1, [[VAL]]
33 ; GCN-DAG: v_mov_b32_e32 v[[HI:[0-9]+]], 0{{$}}
34 ; GCN: buffer_store_dwordx2 v{{\[}}[[LO]]:[[HI]]{{\]}}
42 ; GCN-LABEL: {{^}}lshr_i64_32:
43 ; GCN-DAG: buffer_load_dword v[[LO:[0-9]+]]
44 ; GCN-DAG: v_mov_b32_e32 v[[HI:[0-9]+]], 0{{$}}
45 ; GCN: buffer_store_dwordx2 v{{\[}}[[LO]]:[[HI]]{{\]}}
56 ; GCN-LABEL: {{^}}lshr_and_i64_35:
57 ; GCN: buffer_load_dwordx2 v{{\[}}[[LO:[0-9]+]]:[[HI:[0-9]+]]{{\]}}
58 ; GCN: v_bfe_u32 v[[BFE:[0-9]+]], v[[HI]], 8, 23
59 ; GCN: v_mov_b32_e32 v[[ZERO:[0-9]+]], 0{{$}}
60 ; GCN: buffer_store_dwordx2 v{{\[}}[[BFE]]:[[ZERO]]{{\]}}
71 ; GCN-LABEL: {{^}}shl_i64_const_35:
72 ; GCN: buffer_load_dword [[VAL:v[0-9]+]]
73 ; GCN: v_lshlrev_b32_e32 v[[HI:[0-9]+]], 3, [[VAL]]
74 ; GCN: v_mov_b32_e32 v[[LO:[0-9]+]], 0{{$}}
75 ; GCN: buffer_store_dwordx2 v{{\[}}[[LO]]:[[HI]]{{\]}}
83 ; GCN-LABEL: {{^}}shl_i64_const_32:
84 ; GCN-DAG: buffer_load_dword v[[HI:[0-9]+]]
85 ; GCN-DAG: v_mov_b32_e32 v[[LO:[0-9]+]], 0{{$}}
86 ; GCN: buffer_store_dwordx2 v{{\[}}[[LO]]:[[HI]]{{\]}}
94 ; GCN-LABEL: {{^}}shl_i64_const_63:
95 ; GCN: buffer_load_dword [[VAL:v[0-9]+]]
96 ; GCN: v_lshlrev_b32_e32 v[[HI:[0-9]+]], 31, [[VAL]]
97 ; GCN: v_mov_b32_e32 v[[LO:[0-9]+]], 0{{$}}
98 ; GCN: buffer_store_dwordx2 v{{\[}}[[LO]]:[[HI]]{{\]}}
108 ; GCN-LABEL: {{^}}ashr_i64_const_32:
116 ; GCN-LABEL: {{^}}ashr_i64_const_63:
124 ; GCN-LABEL: {{^}}trunc_shl_31_i32_i64:
125 ; GCN: buffer_load_dword [[VAL:v[0-9]+]]
126 ; GCN: v_lshlrev_b32_e32 [[SHL:v[0-9]+]], 31, [[VAL]]
127 ; GCN: buffer_store_dword [[SHL]]
136 ; GCN-LABEL: {{^}}trunc_shl_15_i16_i64:
137 ; GCN: buffer_load_dword [[VAL:v[0-9]+]]
138 ; GCN: v_lshlrev_b32_e32 [[SHL:v[0-9]+]], 15, [[VAL]]
139 ; GCN: buffer_store_short [[SHL]]
148 ; GCN-LABEL: {{^}}trunc_shl_15_i16_i32:
149 ; GCN: buffer_load_dword [[VAL:v[0-9]+]]
150 ; GCN: v_lshlrev_b32_e32 [[SHL:v[0-9]+]], 15, [[VAL]]
151 ; GCN: buffer_store_short [[SHL]]
160 ; GCN-LABEL: {{^}}trunc_shl_7_i8_i64:
161 ; GCN: buffer_load_dword [[VAL:v[0-9]+]]
162 ; GCN: v_lshlrev_b32_e32 [[SHL:v[0-9]+]], 7, [[VAL]]
163 ; GCN: buffer_store_byte [[SHL]]
172 ; GCN-LABEL: {{^}}trunc_shl_1_i2_i64:
173 ; GCN: buffer_load_dword [[VAL:v[0-9]+]]
174 ; GCN: v_lshlrev_b32_e32 [[SHL:v[0-9]+]], 1, [[VAL]]
175 ; GCN: v_and_b32_e32 [[AND:v[0-9]+]], 2, [[SHL]]
176 ; GCN: buffer_store_byte [[AND]]
185 ; GCN-LABEL: {{^}}trunc_shl_1_i32_i64:
186 ; GCN: buffer_load_dword [[VAL:v[0-9]+]]
187 ; GCN: v_lshlrev_b32_e32 [[SHL:v[0-9]+]], 1, [[VAL]]
188 ; GCN: buffer_store_dword [[SHL]]
197 ; GCN-LABEL: {{^}}trunc_shl_16_i32_i64:
198 ; GCN: buffer_load_dword [[VAL:v[0-9]+]]
199 ; GCN: v_lshlrev_b32_e32 [[SHL:v[0-9]+]], 16, [[VAL]]
200 ; GCN: buffer_store_dword [[SHL]]
209 ; GCN-LABEL: {{^}}trunc_shl_33_i32_i64:
210 ; GCN: v_mov_b32_e32 [[ZERO:v[0-9]+]], 0{{$}}
211 ; GCN: buffer_store_dword [[ZERO]]
220 ; GCN-LABEL: {{^}}trunc_shl_16_v2i32_v2i64:
221 ; GCN: buffer_load_dwordx4 v{{\[}}[[LO:[0-9]+]]:[[HI:[0-9]+]]{{\]}}
222 ; GCN-DAG: v_lshlrev_b32_e32 v[[RESHI:[0-9]+]], 16, v{{[0-9]+}}
223 ; GCN-DAG: v_lshlrev_b32_e32 v[[RESLO:[0-9]+]], 16, v[[LO]]
224 ; GCN: buffer_store_dwordx2 v{{\[}}[[RESLO]]:[[RESHI]]{{\]}}
233 ; GCN-LABEL: {{^}}trunc_shl_31_i32_i64_multi_use:
234 ; GCN: buffer_load_dwordx2 [[VAL:v\[[0-9]+:[0-9]+\]]]
235 ; GCN: v_lshl_b64 v{{\[}}[[RESLO:[0-9]+]]:[[RESHI:[0-9]+]]{{\]}}, [[VAL]], 31
236 ; GCN: buffer_store_dword v[[RESLO]]
237 ; GCN: buffer_store_dwordx2 v{{\[}}[[RESLO]]:[[RESHI]]{{\]}}