Skip to content

Commit 59e7bae

Browse files
Pravin JagtapPravin Jagtap
authored andcommitted
Added a test to represent prologepilog marks the src tuple
as implicit-def while expanding of SI_SPILL_AV96_SAVE.
1 parent 8f45184 commit 59e7bae

File tree

2 files changed

+31
-24
lines changed

2 files changed

+31
-24
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2+
# RUN: llc -mtriple=amdgcn -mcpu=gfx908 %s -o - -run-pass prologepilog -verify-machineinstrs | FileCheck -check-prefix=GFX908 %s
3+
4+
---
5+
name: test_implicit_def
6+
tracksRegLiveness: true
7+
stack:
8+
- { id: 0, name: '', type: spill-slot, offset: 0, size: 12, alignment: 4 }
9+
machineFunctionInfo:
10+
scratchRSrcReg: $sgpr0_sgpr1_sgpr2_sgpr3
11+
stackPtrOffsetReg: '$sgpr32'
12+
hasSpilledVGPRs: true
13+
body: |
14+
bb.0:
15+
successors:
16+
liveins: $vgpr0, $vgpr1
17+
18+
; GFX908-LABEL: name: test_implicit_def
19+
; GFX908: liveins: $vgpr0, $vgpr1, $vgpr2, $vgpr3, $vgpr4
20+
; GFX908-NEXT: {{ $}}
21+
; GFX908-NEXT: renamable $agpr0 = COPY renamable $vgpr0, implicit $exec
22+
; GFX908-NEXT: renamable $agpr2 = COPY renamable $vgpr1, implicit $exec
23+
; GFX908-NEXT: $vgpr4 = V_ACCVGPR_READ_B32_e64 $agpr0, implicit $exec, implicit-def $agpr0_agpr1_agpr2, implicit $agpr0_agpr1_agpr2
24+
; GFX908-NEXT: $vgpr3 = V_ACCVGPR_READ_B32_e64 $agpr1, implicit $exec
25+
; GFX908-NEXT: $vgpr2 = V_ACCVGPR_READ_B32_e64 $agpr2, implicit $exec, implicit $agpr0_agpr1_agpr2
26+
; GFX908-NEXT: S_ENDPGM 0
27+
renamable $agpr0 = COPY renamable $vgpr0, implicit $exec
28+
renamable $agpr2 = COPY renamable $vgpr1, implicit $exec
29+
SI_SPILL_AV96_SAVE $agpr0_agpr1_agpr2, %stack.0, $sgpr32, 0, implicit $exec :: (store (s96) into %stack.0, align 4, addrspace 5)
30+
S_ENDPGM 0
31+
...

llvm/test/CodeGen/AMDGPU/incorrect-copy-deletion.mir

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)