Reworked unit tests for machine and renamed test_programs directory
This commit is contained in:
6
test/riscv_instructions/jump_instructions/Makefile
Normal file
6
test/riscv_instructions/jump_instructions/Makefile
Normal file
@ -0,0 +1,6 @@
|
||||
TOPDIR = ../..
|
||||
include $(TOPDIR)/Makefile.tests
|
||||
|
||||
dumps: jump.dump ret.dump
|
||||
|
||||
tests: jump.guac ret.guac
|
8
test/riscv_instructions/jump_instructions/jump.c
Normal file
8
test/riscv_instructions/jump_instructions/jump.c
Normal file
@ -0,0 +1,8 @@
|
||||
int test() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
int main() {
|
||||
int x = test();
|
||||
return x;
|
||||
}
|
3
test/riscv_instructions/jump_instructions/ret.c
Normal file
3
test/riscv_instructions/jump_instructions/ret.c
Normal file
@ -0,0 +1,3 @@
|
||||
int main() {
|
||||
return 1;
|
||||
}
|
Reference in New Issue
Block a user