qbe

Internal scc patchset buffer for QBE
Log | Files | Refs | README | LICENSE

commit 83131357f7a15ee28208e41b1503937df34b99ba
parent dcf07ba55c437b892f4a73a8e513d7adacdf0e2b
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date:   Fri,  7 Aug 2015 20:28:21 -0400

add very nice spilling stress test

Diffstat:
Alisc/test/spill2.ssa | 22++++++++++++++++++++++
1 file changed, 22 insertions(+), 0 deletions(-)

diff --git a/lisc/test/spill2.ssa b/lisc/test/spill2.ssa @@ -0,0 +1,22 @@ +# make sure comparisons +# never get their two +# operands in memory +# run with NReg == 3, or +# adapt it! + +@start + %a =w copy 0 + %b =w copy 0 + +@loop + %c =w phi @start 0, @loop %f + %d =w phi @start 0, @loop %g + %e =w phi @start 0, @loop %h + %f =w add %c, %d + %g =w add %c, %e + %h =w add %e, %d + %x =w csle %a, %b + jnz %x, @loop, @end +@end + ret +