From 36635660b40573f6a0c19d50dfdd9277589030de Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Sun, 27 Mar 2016 15:00:45 -0400 Subject: extract tests out of src --- test/_fix3.ssa | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 test/_fix3.ssa (limited to 'test/_fix3.ssa') diff --git a/test/_fix3.ssa b/test/_fix3.ssa new file mode 100644 index 0000000..283e5a1 --- /dev/null +++ b/test/_fix3.ssa @@ -0,0 +1,20 @@ +function w $test() { +@start + %x =w copy 100 + %s =w copy 0 +@l + %c =w cslew %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 +} -- cgit 1.4.1