testbed is now functional

I would like to make sure some _ tests are
passing, however I have to think of a nice
way to grab debug output and compare it
nicely.  Some require NReg == 3, that is a
pain in the ass.  Maybe they can be changed
to work for the full register set.
This commit is contained in:
Quentin Carbonneaux 2016-03-03 11:55:13 -05:00
parent 99965071d2
commit 67f611fbef
27 changed files with 97 additions and 19 deletions

View file

@ -2,7 +2,7 @@
# compiler from the C program
# following in comments
function $test() {
function w $main() {
@start
%v0 =l alloc8 4
%v1 =l alloc8 4
@ -64,13 +64,11 @@ function $test() {
%v26 =w cnew %v25, 104743
jnz %v26, @L13, @L7
@L13
storew 1, $a
ret
ret 1
@L7
storew 0, $a
ret
ret 0
@end
ret
ret 0
}
# int