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/cup.ssa | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test/cup.ssa (limited to 'test/cup.ssa') diff --git a/test/cup.ssa b/test/cup.ssa new file mode 100644 index 0000000..013394f --- /dev/null +++ b/test/cup.ssa @@ -0,0 +1,17 @@ +# counts up from -1988 to 1991 + +function $test() { +@start +@loop + %n0 =l phi @start -1988, @loop %n1 + %n1 =l add 1, %n0 + %cmp =w cslel 1991, %n1 + jnz %cmp, @end, @loop +@end + ret +} + +# >>> driver +# extern void test(void); +# int main() { test(); return 0; } +# <<< -- cgit 1.4.1