Added "simple" test to rv32ui.
authorChristopher Celio <celio@eecs.berkeley.edu>
Thu, 28 Aug 2014 10:52:17 +0000 (03:52 -0700)
committerChristopher Celio <celio@eecs.berkeley.edu>
Thu, 28 Aug 2014 10:52:17 +0000 (03:52 -0700)
isa/rv32ui/Makefrag
isa/rv32ui/simple.S [new file with mode: 0644]

index d487463cc33643f38fc3a199fa16bc23071d1563..942f8f7c9aff83dc81a03508a899f5c57969c232 100644 (file)
@@ -3,6 +3,7 @@
 #-----------------------------------------------------------------------
 
 rv32ui_sc_tests = \
+   simple \
        add addi \
        amoadd_w amoand_w amomax_w amomaxu_w amomin_w amominu_w amoor_w amoswap_w \
        and andi \
diff --git a/isa/rv32ui/simple.S b/isa/rv32ui/simple.S
new file mode 100644 (file)
index 0000000..c247ce0
--- /dev/null
@@ -0,0 +1,25 @@
+#*****************************************************************************
+# 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
+
+RVTEST_DATA_END