diff options
author | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2015-11-10 20:36:27 -0500 |
---|---|---|
committer | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2015-11-10 20:36:32 -0500 |
commit | 33a4b128a9486d9cebe33f8c3ae4a5ebca1d4046 (patch) | |
tree | 4e15b93aaa437c7538c14c8786daa3d6643f77a7 /lisc/test | |
parent | 4fdee5720ab976e6c7af2f86fb518cd696fcbf0f (diff) | |
download | roux-33a4b128a9486d9cebe33f8c3ae4a5ebca1d4046.tar.gz |
add new test for ssa construction
Diffstat (limited to 'lisc/test')
-rw-r--r-- | lisc/test/fix3.ssa | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lisc/test/fix3.ssa b/lisc/test/fix3.ssa new file mode 100644 index 0000000..1350dc5 --- /dev/null +++ b/lisc/test/fix3.ssa @@ -0,0 +1,20 @@ +function w $test() { +@start + %x =w copy 100 + %s =w copy 0 +@l + %c =w csle %x, 10 + jnz %c, @a, @b +@a + %s =w add %s, %x + %x =w sub %x, 1 + jmp @c +@b + %s =w sub %s, %x + jmp @c +@c + %x =w sub %x, 1 + jnz %x, @l, @end +@end + ret %s +} |