added patterns for stackheight mechanism
This commit is contained in:
parent
43b01a70a0
commit
b23125354b
1 changed files with 18 additions and 1 deletions
|
|
@ -2719,7 +2719,24 @@ pat loc cmu zne $1<256 && $1>=0 && $2==2 call loccmuzxx("jne")
|
||||||
* Group 13 : Branch Instructions *
|
* Group 13 : Branch Instructions *
|
||||||
*******************************************************************/
|
*******************************************************************/
|
||||||
|
|
||||||
pat bra
|
pat lab stackheight($1)==2 && !fallthrough($1)
|
||||||
|
with STACK
|
||||||
|
gen labeldef $1 yields ax
|
||||||
|
|
||||||
|
pat lab stackheight($1)==2 && fallthrough($1)
|
||||||
|
with ACC STACK
|
||||||
|
gen labeldef $1 yields ax
|
||||||
|
|
||||||
|
pat lab stackheight($1)!=2
|
||||||
|
with STACK
|
||||||
|
kills ALL
|
||||||
|
gen labeldef $1
|
||||||
|
|
||||||
|
pat bra stackheight($1)==2
|
||||||
|
with ACC STACK
|
||||||
|
gen jmp {label,$1}
|
||||||
|
|
||||||
|
pat bra stackheight($1)!=2
|
||||||
with STACK
|
with STACK
|
||||||
gen jmp {label,$1}
|
gen jmp {label,$1}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue