extract tests out of src

This commit is contained in:
Quentin Carbonneaux 2016-03-27 15:00:45 -04:00
parent aad52241c8
commit 36635660b4
35 changed files with 10 additions and 3 deletions

17
test/cup.ssa Normal file
View file

@ -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; }
# <<<