diff options
Diffstat (limited to 'lisc')
-rw-r--r-- | lisc/test/fix1.ssa | 13 | ||||
-rw-r--r-- | lisc/test/fix2.ssa | 13 |
2 files changed, 26 insertions, 0 deletions
diff --git a/lisc/test/fix1.ssa b/lisc/test/fix1.ssa new file mode 100644 index 0000000..783f6f7 --- /dev/null +++ b/lisc/test/fix1.ssa @@ -0,0 +1,13 @@ +@start + %x = copy 1 +@loop + jez %x, @isz, @noz +@noz + %x = copy 0 + jmp @end +@isz + %x = copy 1 + jmp @loop +@end + %z = add 10, %x + ret diff --git a/lisc/test/fix2.ssa b/lisc/test/fix2.ssa new file mode 100644 index 0000000..2b3cf88 --- /dev/null +++ b/lisc/test/fix2.ssa @@ -0,0 +1,13 @@ +@start + %x = copy 1 +@loop + jez %x, @isz, @noz +@noz + %x = copy 0 + jez %x, @end, @loop +@isz + %x = copy 1 + jmp @loop +@end + %z = add 10, %x + ret |