Add missing instances of "kills ALL" or "with STACK".

This commit is contained in:
George Koehler 2017-02-13 16:38:26 -05:00
parent ba9b021253
commit 89dd80e34d

View file

@ -1952,11 +1952,13 @@ PATTERNS
pat csa /* Array-lookup switch */ pat csa /* Array-lookup switch */
with STACK with STACK
kills ALL
gen gen
b {LABEL, ".csa"} b {LABEL, ".csa"}
pat csb /* Table-lookup switch */ pat csb /* Table-lookup switch */
with STACK with STACK
kills ALL
gen gen
b {LABEL, ".csb"} b {LABEL, ".csb"}
@ -1987,6 +1989,7 @@ PATTERNS
pat trp /* Raise EM trap */ pat trp /* Raise EM trap */
with GPR3 with GPR3
kills ALL
gen gen
bl {LABEL, ".trap"} bl {LABEL, ".trap"}
@ -2024,14 +2027,15 @@ PATTERNS
lpb lpb
pat gto /* longjmp */ pat gto /* longjmp */
uses REG with STACK
gen uses REG
move {LABEL, $1}, %a gen
move {IND_RC_W, %a, 8}, FP move {LABEL, $1}, %a
move {IND_RC_W, %a, 4}, SP move {IND_RC_W, %a, 8}, FP
move {IND_RC_W, %a, 0}, %a move {IND_RC_W, %a, 4}, SP
mtspr CTR, %a move {IND_RC_W, %a, 0}, %a
bctr. mtspr CTR, %a
bctr.
pat lor $1==0 /* Load FP */ pat lor $1==0 /* Load FP */
uses REG uses REG
@ -2084,6 +2088,7 @@ PATTERNS
pat lae rck $2==4 /* Range check */ pat lae rck $2==4 /* Range check */
with REG with REG
kills ALL
gen gen
cmpwi %1, {CONST, rom($1, 1)} cmpwi %1, {CONST, rom($1, 1)}
blt {LABEL, ".trap_erange"} blt {LABEL, ".trap_erange"}
@ -2355,9 +2360,8 @@ PATTERNS
/* Convert double to unsigned int */ /* Convert double to unsigned int */
pat loc loc cfu $1==8 && $2==4 pat loc loc cfu $1==8 && $2==4
with STACK leaving
gen cal ".cfu8"
bl {LABEL, ".cfu8"}
/* /*
* To convert integer to IEEE double, we pack the integer in * To convert integer to IEEE double, we pack the integer in