From 83131357f7a15ee28208e41b1503937df34b99ba Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Fri, 7 Aug 2015 20:28:21 -0400 Subject: [PATCH] add very nice spilling stress test --- lisc/test/spill2.ssa | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 lisc/test/spill2.ssa diff --git a/lisc/test/spill2.ssa b/lisc/test/spill2.ssa new file mode 100644 index 0000000..b312295 --- /dev/null +++ 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 +