From 67f611fbef3cf16162867bdf83cb9c8a051dac4a Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Thu, 3 Mar 2016 11:55:13 -0500 Subject: testbed is now functional I would like to make sure some _ tests are passing, however I have to think of a nice way to grab debug output and compare it nicely. Some require NReg == 3, that is a pain in the ass. Maybe they can be changed to work for the full register set. --- lisc/test/_fix2.ssa | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 lisc/test/_fix2.ssa (limited to 'lisc/test/_fix2.ssa') diff --git a/lisc/test/_fix2.ssa b/lisc/test/_fix2.ssa new file mode 100644 index 0000000..89f236d --- /dev/null +++ b/lisc/test/_fix2.ssa @@ -0,0 +1,15 @@ +function $test() { +@start + %x =w copy 1 +@loop + jnz %x, @noz, @isz +@noz + %x =w copy 0 + jnz %x, @loop, @end +@isz + %x =w copy 1 + jmp @loop +@end + %z =w add 10, %x + ret +} -- cgit 1.4.1