extract tests out of src
This commit is contained in:
parent
aad52241c8
commit
36635660b4
35 changed files with 10 additions and 3 deletions
17
test/cup.ssa
Normal file
17
test/cup.ssa
Normal 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; }
|
||||
# <<<
|
Loading…
Add table
Add a link
Reference in a new issue