Fixes to return sequence
This commit is contained in:
parent
85f491555f
commit
35fa794781
|
@ -1982,12 +1982,14 @@ pat lfr ret $1==$2 leaving ret 0
|
||||||
pat ret $1==0
|
pat ret $1==0
|
||||||
with STACK
|
with STACK
|
||||||
gen mov lb,sp
|
gen mov lb,sp
|
||||||
|
mov {autoinc, sp},lb
|
||||||
rts pc
|
rts pc
|
||||||
|
|
||||||
pat ret $1==2
|
pat ret $1==2
|
||||||
with src2 STACK
|
with src2 STACK
|
||||||
gen move %1,r0
|
gen move %1,r0
|
||||||
mov lb,sp
|
mov lb,sp
|
||||||
|
mov {autoinc, sp},lb
|
||||||
rts pc
|
rts pc
|
||||||
|
|
||||||
pat ret $1==4
|
pat ret $1==4
|
||||||
|
@ -1995,6 +1997,7 @@ with STACK
|
||||||
gen mov {autoinc,sp},r0
|
gen mov {autoinc,sp},r0
|
||||||
mov {autoinc,sp},r1
|
mov {autoinc,sp},r1
|
||||||
mov lb,sp
|
mov lb,sp
|
||||||
|
mov {autoinc, sp},lb
|
||||||
rts pc
|
rts pc
|
||||||
|
|
||||||
pat ret $1==8 yields {addr_external, "retar"}
|
pat ret $1==8 yields {addr_external, "retar"}
|
||||||
|
|
Loading…
Reference in a new issue