Commit b6cddea
committed
[AIE2PS] Fixup L spill test to not use CSR register for return
The test was using CSR registers for function returns which led to the
reload happening before the PseudoRET where it would have to be
afterwards for a normal use. We ended up returning the l register that
was saved from the caller function instead of the one defined inside the
function.
This fixes the test to show realistic MIR where the register is used by
a KILL instruction instead of the PseudoRET, now the reload happens
after the KILL and right before the return restoring the CSR value
coming from the caller.1 parent 0310752 commit b6cddea
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
43 | | - | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
47 | | - | |
| 48 | + | |
| 49 | + | |
48 | 50 | | |
49 | 51 | | |
50 | 52 | | |
| |||
0 commit comments