From 82a9395e97dadc87e3dce289895ff88ef7e2fd51 Mon Sep 17 00:00:00 2001 From: Howard Mao Date: Mon, 2 May 2016 18:32:29 -0700 Subject: [PATCH] add empty ISA test --- isa/Makefile | 2 ++ isa/rvall/Makefrag | 5 +++++ isa/rvall/empty.S | 23 +++++++++++++++++++++++ 3 files changed, 30 insertions(+) create mode 100644 isa/rvall/Makefrag create mode 100644 isa/rvall/empty.S 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 -- 2.30.2