aboutsummaryrefslogtreecommitdiff
path: root/isa/rv32ui/simple.S
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@cs.berkeley.edu>2016-08-30 13:02:59 -0700
committerAndrew Waterman <waterman@cs.berkeley.edu>2016-08-30 13:13:52 -0700
commit8c633e9e80d0b3e3764ebc3651e9cc09ab9413c9 (patch)
treefc8b6f6c7a2231e52e095c7a1cb682fd18f79235 /isa/rv32ui/simple.S
parent2a9cd2c6cc19863c781bcaa8b276de6e528fba8e (diff)
downloadriscv-tests-8c633e9e80d0b3e3764ebc3651e9cc09ab9413c9.zip
riscv-tests-8c633e9e80d0b3e3764ebc3651e9cc09ab9413c9.tar.gz
riscv-tests-8c633e9e80d0b3e3764ebc3651e9cc09ab9413c9.tar.bz2
Share code between rv32ui and rv64ui tests
They were almost identical, so I made them actually identical. This will reduce the burden of writing further tests that span base ISAs. Tests can still be specialized for XLEN with ifdefs on e.g. __riscv64.
Diffstat (limited to 'isa/rv32ui/simple.S')
-rw-r--r--isa/rv32ui/simple.S26
1 files changed, 3 insertions, 23 deletions
diff --git a/isa/rv32ui/simple.S b/isa/rv32ui/simple.S
index 92cf203..20e5546 100644
--- a/isa/rv32ui/simple.S
+++ b/isa/rv32ui/simple.S
@@ -1,27 +1,7 @@
# See LICENSE for license details.
-#*****************************************************************************
-# simple.S
-#-----------------------------------------------------------------------------
-#
-# This is the most basic self checking test. If your simulator does not
-# pass thiss then there is little chance that it will pass any of the
-# more complicated self checking tests.
-#
-
#include "riscv_test.h"
-#include "test_macros.h"
-
-RVTEST_RV32U
-RVTEST_CODE_BEGIN
-
-RVTEST_PASS
-
-RVTEST_CODE_END
-
- .data
-RVTEST_DATA_BEGIN
-
- TEST_DATA
+#undef RVTEST_RV64U
+#define RVTEST_RV64U RVTEST_RV32U
-RVTEST_DATA_END
+#include "../rv64ui/simple.S"