comparison llvm/test/CodeGen/AMDGPU/shrink-vop3-carry-out.mir @ 252:1f2b6ac9f198 llvm-original

LLVM16-1
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Fri, 18 Aug 2023 09:04:13 +0900
parents 79ff65ed7e25
children
comparison
equal deleted inserted replaced
237:c80f45b162ad 252:1f2b6ac9f198
79 %11 = S_MOV_B32 0 79 %11 = S_MOV_B32 0
80 %12 = REG_SEQUENCE killed %11, 1, killed %10, 2 80 %12 = REG_SEQUENCE killed %11, 1, killed %10, 2
81 %13 = REG_SEQUENCE killed %5, 17, %12, 18 81 %13 = REG_SEQUENCE killed %5, 17, %12, 18
82 %28 = V_LSHL_B64_e64 killed %27, 2, implicit $exec 82 %28 = V_LSHL_B64_e64 killed %27, 2, implicit $exec
83 %16 = REG_SEQUENCE killed %4, 17, %12, 18 83 %16 = REG_SEQUENCE killed %4, 17, %12, 18
84 %17 = BUFFER_LOAD_DWORD_ADDR64 %28, %13, 0, 0, 0, 0, 0, implicit $exec 84 %17 = BUFFER_LOAD_DWORD_ADDR64 %28, %13, 0, 0, 0, 0, implicit $exec
85 %19 = BUFFER_LOAD_DWORD_ADDR64 %28, %13, 0, 4, 0, 0, 0, implicit $exec 85 %19 = BUFFER_LOAD_DWORD_ADDR64 %28, %13, 0, 4, 0, 0, implicit $exec
86 %29, %9 = V_ADD_CO_U32_e64 %19, %17, 0, implicit $exec 86 %29, %9 = V_ADD_CO_U32_e64 %19, %17, 0, implicit $exec
87 %24 = V_CNDMASK_B32_e64 0, 0, 0, 1, killed %9, implicit $exec 87 %24 = V_CNDMASK_B32_e64 0, 0, 0, 1, killed %9, implicit $exec
88 BUFFER_STORE_DWORD_ADDR64 %24, %28, killed %16, 0, 0, 0, 0, 0, implicit $exec 88 BUFFER_STORE_DWORD_ADDR64 %24, %28, killed %16, 0, 0, 0, 0, implicit $exec
89 S_ENDPGM 0 89 S_ENDPGM 0
90 90
91 ... 91 ...
92 --- 92 ---
93 # GCN-LABEL: name: shrink_sub_vop3{{$}} 93 # GCN-LABEL: name: shrink_sub_vop3{{$}}
163 %11 = S_MOV_B32 0 163 %11 = S_MOV_B32 0
164 %12 = REG_SEQUENCE killed %11, 1, killed %10, 2 164 %12 = REG_SEQUENCE killed %11, 1, killed %10, 2
165 %13 = REG_SEQUENCE killed %5, 17, %12, 18 165 %13 = REG_SEQUENCE killed %5, 17, %12, 18
166 %28 = V_LSHL_B64_e64 killed %27, 2, implicit $exec 166 %28 = V_LSHL_B64_e64 killed %27, 2, implicit $exec
167 %16 = REG_SEQUENCE killed %4, 17, %12, 18 167 %16 = REG_SEQUENCE killed %4, 17, %12, 18
168 %17 = BUFFER_LOAD_DWORD_ADDR64 %28, %13, 0, 0, 0, 0, 0, implicit $exec 168 %17 = BUFFER_LOAD_DWORD_ADDR64 %28, %13, 0, 0, 0, 0, implicit $exec
169 %19 = BUFFER_LOAD_DWORD_ADDR64 %28, %13, 0, 4, 0, 0, 0, implicit $exec 169 %19 = BUFFER_LOAD_DWORD_ADDR64 %28, %13, 0, 4, 0, 0, implicit $exec
170 %29, %9 = V_SUB_CO_U32_e64 %19, %17, 0, implicit $exec 170 %29, %9 = V_SUB_CO_U32_e64 %19, %17, 0, implicit $exec
171 %24 = V_CNDMASK_B32_e64 0, 0, 0, 1, killed %9, implicit $exec 171 %24 = V_CNDMASK_B32_e64 0, 0, 0, 1, killed %9, implicit $exec
172 BUFFER_STORE_DWORD_ADDR64 %24, %28, killed %16, 0, 0, 0, 0, 0, implicit $exec 172 BUFFER_STORE_DWORD_ADDR64 %24, %28, killed %16, 0, 0, 0, 0, implicit $exec
173 S_ENDPGM 0 173 S_ENDPGM 0
174 174
175 ... 175 ...
176 --- 176 ---
177 # GCN-LABEL: name: shrink_subrev_vop3{{$}} 177 # GCN-LABEL: name: shrink_subrev_vop3{{$}}
247 %11 = S_MOV_B32 0 247 %11 = S_MOV_B32 0
248 %12 = REG_SEQUENCE killed %11, 1, killed %10, 2 248 %12 = REG_SEQUENCE killed %11, 1, killed %10, 2
249 %13 = REG_SEQUENCE killed %5, 17, %12, 18 249 %13 = REG_SEQUENCE killed %5, 17, %12, 18
250 %28 = V_LSHL_B64_e64 killed %27, 2, implicit $exec 250 %28 = V_LSHL_B64_e64 killed %27, 2, implicit $exec
251 %16 = REG_SEQUENCE killed %4, 17, %12, 18 251 %16 = REG_SEQUENCE killed %4, 17, %12, 18
252 %17 = BUFFER_LOAD_DWORD_ADDR64 %28, %13, 0, 0, 0, 0, 0, implicit $exec 252 %17 = BUFFER_LOAD_DWORD_ADDR64 %28, %13, 0, 0, 0, 0, implicit $exec
253 %19 = BUFFER_LOAD_DWORD_ADDR64 %28, %13, 0, 4, 0, 0, 0, implicit $exec 253 %19 = BUFFER_LOAD_DWORD_ADDR64 %28, %13, 0, 4, 0, 0, implicit $exec
254 %29, %9 = V_SUBREV_CO_U32_e64 %19, %17, 0, implicit $exec 254 %29, %9 = V_SUBREV_CO_U32_e64 %19, %17, 0, implicit $exec
255 %24 = V_CNDMASK_B32_e64 0, 0, 0, 1, killed %9, implicit $exec 255 %24 = V_CNDMASK_B32_e64 0, 0, 0, 1, killed %9, implicit $exec
256 BUFFER_STORE_DWORD_ADDR64 %29, %28, killed %16, 0, 0, 0, 0, 0, implicit $exec 256 BUFFER_STORE_DWORD_ADDR64 %29, %28, killed %16, 0, 0, 0, 0, implicit $exec
257 S_ENDPGM 0 257 S_ENDPGM 0
258 258
259 ... 259 ...
260 --- 260 ---
261 # GCN-LABEL: name: check_addc_src2_vop3{{$}} 261 # GCN-LABEL: name: check_addc_src2_vop3{{$}}
330 %11 = S_MOV_B32 0 330 %11 = S_MOV_B32 0
331 %12 = REG_SEQUENCE killed %11, 1, killed %10, 2 331 %12 = REG_SEQUENCE killed %11, 1, killed %10, 2
332 %13 = REG_SEQUENCE killed %5, 17, %12, 18 332 %13 = REG_SEQUENCE killed %5, 17, %12, 18
333 %28 = V_LSHL_B64_e64 killed %27, 2, implicit $exec 333 %28 = V_LSHL_B64_e64 killed %27, 2, implicit $exec
334 %16 = REG_SEQUENCE killed %4, 17, %12, 18 334 %16 = REG_SEQUENCE killed %4, 17, %12, 18
335 %17 = BUFFER_LOAD_DWORD_ADDR64 %28, %13, 0, 0, 0, 0, 0, implicit $exec 335 %17 = BUFFER_LOAD_DWORD_ADDR64 %28, %13, 0, 0, 0, 0, implicit $exec
336 %19 = BUFFER_LOAD_DWORD_ADDR64 %28, %13, 0, 4, 0, 0, 0, implicit $exec 336 %19 = BUFFER_LOAD_DWORD_ADDR64 %28, %13, 0, 4, 0, 0, implicit $exec
337 %9 = S_MOV_B64 0 337 %9 = S_MOV_B64 0
338 %29, $vcc = V_ADDC_U32_e64 %19, %17, %9, 0, implicit $exec 338 %29, $vcc = V_ADDC_U32_e64 %19, %17, %9, 0, implicit $exec
339 %24 = V_CNDMASK_B32_e64 0, 0, 0, 1, killed $vcc, implicit $exec 339 %24 = V_CNDMASK_B32_e64 0, 0, 0, 1, killed $vcc, implicit $exec
340 BUFFER_STORE_DWORD_ADDR64 %24, %28, killed %16, 0, 0, 0, 0, 0, implicit $exec 340 BUFFER_STORE_DWORD_ADDR64 %24, %28, killed %16, 0, 0, 0, 0, implicit $exec
341 S_ENDPGM 0 341 S_ENDPGM 0
342 342
343 ... 343 ...
344 --- 344 ---
345 # GCN-LABEL: name: shrink_addc_vop3{{$}} 345 # GCN-LABEL: name: shrink_addc_vop3{{$}}
415 %11 = S_MOV_B32 0 415 %11 = S_MOV_B32 0
416 %12 = REG_SEQUENCE killed %11, 1, killed %10, 2 416 %12 = REG_SEQUENCE killed %11, 1, killed %10, 2
417 %13 = REG_SEQUENCE killed %5, 17, %12, 18 417 %13 = REG_SEQUENCE killed %5, 17, %12, 18
418 %28 = V_LSHL_B64_e64 killed %27, 2, implicit $exec 418 %28 = V_LSHL_B64_e64 killed %27, 2, implicit $exec
419 %16 = REG_SEQUENCE killed %4, 17, %12, 18 419 %16 = REG_SEQUENCE killed %4, 17, %12, 18
420 %17 = BUFFER_LOAD_DWORD_ADDR64 %28, %13, 0, 0, 0, 0, 0, implicit $exec 420 %17 = BUFFER_LOAD_DWORD_ADDR64 %28, %13, 0, 0, 0, 0, implicit $exec
421 %19 = BUFFER_LOAD_DWORD_ADDR64 %28, %13, 0, 4, 0, 0, 0, implicit $exec 421 %19 = BUFFER_LOAD_DWORD_ADDR64 %28, %13, 0, 4, 0, 0, implicit $exec
422 $vcc = S_MOV_B64 0 422 $vcc = S_MOV_B64 0
423 %29, $vcc = V_ADDC_U32_e64 %19, %17, $vcc, 0, implicit $exec 423 %29, $vcc = V_ADDC_U32_e64 %19, %17, $vcc, 0, implicit $exec
424 %24 = V_CNDMASK_B32_e64 0, 0, 0, 1, killed $vcc, implicit $exec 424 %24 = V_CNDMASK_B32_e64 0, 0, 0, 1, killed $vcc, implicit $exec
425 BUFFER_STORE_DWORD_ADDR64 %24, %28, killed %16, 0, 0, 0, 0, 0, implicit $exec 425 BUFFER_STORE_DWORD_ADDR64 %24, %28, killed %16, 0, 0, 0, 0, implicit $exec
426 S_ENDPGM 0 426 S_ENDPGM 0
427 427
428 ... 428 ...
429 429
430 --- 430 ---
500 %11 = S_MOV_B32 0 500 %11 = S_MOV_B32 0
501 %12 = REG_SEQUENCE killed %11, 1, killed %10, 2 501 %12 = REG_SEQUENCE killed %11, 1, killed %10, 2
502 %13 = REG_SEQUENCE killed %5, 17, %12, 18 502 %13 = REG_SEQUENCE killed %5, 17, %12, 18
503 %28 = V_LSHL_B64_e64 killed %27, 2, implicit $exec 503 %28 = V_LSHL_B64_e64 killed %27, 2, implicit $exec
504 %16 = REG_SEQUENCE killed %4, 17, %12, 18 504 %16 = REG_SEQUENCE killed %4, 17, %12, 18
505 %17 = BUFFER_LOAD_DWORD_ADDR64 %28, %13, 0, 0, 0, 0, 0, implicit $exec 505 %17 = BUFFER_LOAD_DWORD_ADDR64 %28, %13, 0, 0, 0, 0, implicit $exec
506 %19 = BUFFER_LOAD_DWORD_ADDR64 %28, %13, 0, 4, 0, 0, 0, implicit $exec 506 %19 = BUFFER_LOAD_DWORD_ADDR64 %28, %13, 0, 4, 0, 0, implicit $exec
507 %29, $vcc = V_ADDC_U32_e64 %19, %17, undef $vcc, 0, implicit $exec 507 %29, $vcc = V_ADDC_U32_e64 %19, %17, undef $vcc, 0, implicit $exec
508 %24 = V_CNDMASK_B32_e64 0, 0, 0, 1, killed $vcc, implicit $exec 508 %24 = V_CNDMASK_B32_e64 0, 0, 0, 1, killed $vcc, implicit $exec
509 BUFFER_STORE_DWORD_ADDR64 %24, %28, killed %16, 0, 0, 0, 0, 0, implicit $exec 509 BUFFER_STORE_DWORD_ADDR64 %24, %28, killed %16, 0, 0, 0, 0, implicit $exec
510 S_ENDPGM 0 510 S_ENDPGM 0
511 511
512 ... 512 ...