aboutsummaryrefslogtreecommitdiff
path: root/isa/rv32ui/fence_i.S
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@cs.berkeley.edu>2016-07-11 17:45:16 -0700
committerAndrew Waterman <waterman@cs.berkeley.edu>2016-07-11 17:45:16 -0700
commit089f4aae4836af1f3f530fbedc3a43a685eae0d1 (patch)
tree76bc328ba3e17aa6caab7957afb250c6ab0eb6c6 /isa/rv32ui/fence_i.S
parenta5b7f805c111e14a1478153147a57283a0b9e45d (diff)
downloadriscv-tests-089f4aae4836af1f3f530fbedc3a43a685eae0d1.zip
riscv-tests-089f4aae4836af1f3f530fbedc3a43a685eae0d1.tar.gz
riscv-tests-089f4aae4836af1f3f530fbedc3a43a685eae0d1.tar.bz2
Remove instruction width assumptions to support RVC
Diffstat (limited to 'isa/rv32ui/fence_i.S')
-rw-r--r--isa/rv32ui/fence_i.S52
1 files changed, 3 insertions, 49 deletions
diff --git a/isa/rv32ui/fence_i.S b/isa/rv32ui/fence_i.S
index 8785c1e..cd1dbc3 100644
--- a/isa/rv32ui/fence_i.S
+++ b/isa/rv32ui/fence_i.S
@@ -1,53 +1,7 @@
# See LICENSE for license details.
-#*****************************************************************************
-# fence_i.S
-#-----------------------------------------------------------------------------
-#
-# Test self-modifying code and the fence.i instruction.
-#
-
#include "riscv_test.h"
-#include "test_macros.h"
-
-RVTEST_RV32U
-RVTEST_CODE_BEGIN
-
-li a3, 111
-la a0, 3f
-la a1, 1f
-la a2, 2f
-lw a0, 0(a0)
-
-# test I$ hit
-.align 6
-sw a0, 0(a1)
-fence.i
-
-1: addi a3, a3, 222
-TEST_CASE( 2, a3, 444, nop )
-
-# test prefetcher hit
-li a4, 100
-1: addi a4, a4, -1
-bnez a4, 1b
-
-sw a0, 0(a2)
-fence.i
-
-.align 6
-2: addi a3, a3, 555
-TEST_CASE( 3, a3, 777, nop )
-
-3: addi a3, a3, 333
-
-TEST_PASSFAIL
-
-RVTEST_CODE_END
-
- .data
-RVTEST_DATA_BEGIN
-
- TEST_DATA
+#undef RVTEST_RV64U
+#define RVTEST_RV64U RVTEST_RV32U
-RVTEST_DATA_END
+#include "../rv64ui/fence_i.S"