From: Howard Mao Date: Tue, 3 May 2016 01:32:29 +0000 (-0700) Subject: add empty ISA test X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=82a9395e97dadc87e3dce289895ff88ef7e2fd51;p=riscv-tests.git add empty ISA test --- diff --git a/isa/Makefile b/isa/Makefile index 636cbbe..e3f0781 100644 --- a/isa/Makefile +++ b/isa/Makefile @@ -11,6 +11,7 @@ include $(src_dir)/rv64mi/Makefrag include $(src_dir)/rv32ui/Makefrag include $(src_dir)/rv32si/Makefrag include $(src_dir)/rv32mi/Makefrag +include $(src_dir)/rvall/Makefrag default: all @@ -60,6 +61,7 @@ tests += $$($(1)_tests) endef +$(eval $(call compile_template,rvall)) $(eval $(call compile_template,rv32ui,-m32)) $(eval $(call compile_template,rv32si,-m32)) $(eval $(call compile_template,rv32mi,-m32)) diff --git a/isa/rvall/Makefrag b/isa/rvall/Makefrag new file mode 100644 index 0000000..2cdedd7 --- /dev/null +++ b/isa/rvall/Makefrag @@ -0,0 +1,5 @@ +rvall_sc_tests = empty + +rvall_p_tests = $(addprefix rvall-p-, $(rvall_sc_tests)) + +spike_tests += $(rvall_p_tests) diff --git a/isa/rvall/empty.S b/isa/rvall/empty.S new file mode 100644 index 0000000..5c2dae9 --- /dev/null +++ b/isa/rvall/empty.S @@ -0,0 +1,23 @@ +# See LICENSE for license details. + +#***************************************************************************** +# add.S +#----------------------------------------------------------------------------- +# +# Test add instruction. +# + +#include "riscv_test.h" +#include "test_macros.h" + +RVTEST_RV64U +RVTEST_CODE_BEGIN + +RVTEST_CODE_END + + .data +RVTEST_DATA_BEGIN + + TEST_DATA + +RVTEST_DATA_END