aboutsummaryrefslogtreecommitdiff
path: root/isa/macros
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2022-06-03 13:12:01 -0700
committerTim Newsome <tim@sifive.com>2022-06-06 09:05:26 -0700
commit27dbc399e23d5f9668363706accc76911d6d31fc (patch)
tree5c3138e974f883a06f5d4117f258c608bc29ea9b /isa/macros
parentc91d26c50725a6eb3bcff2b01d4c65eba2f82541 (diff)
downloadriscv-tests-27dbc399e23d5f9668363706accc76911d6d31fc.zip
riscv-tests-27dbc399e23d5f9668363706accc76911d6d31fc.tar.gz
riscv-tests-27dbc399e23d5f9668363706accc76911d6d31fc.tar.bz2
Revert unaligned tests.
They lead to two problems: 1. The change to set TESTNUM before the test instead of after broke a few tests that relied on the old behavior. 2. Some tests in the v variant do something in the exception handler such that when they get an unaligned access exception, they end up stuck in a loop of unaligned access exceptions and the exception handler set up in the test is never called.
Diffstat (limited to 'isa/macros')
-rw-r--r--isa/macros/scalar/test_macros.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/isa/macros/scalar/test_macros.h b/isa/macros/scalar/test_macros.h
index ee352e4..a8a78a7 100644
--- a/isa/macros/scalar/test_macros.h
+++ b/isa/macros/scalar/test_macros.h
@@ -12,9 +12,9 @@
#define TEST_CASE( testnum, testreg, correctval, code... ) \
test_ ## testnum: \
- li TESTNUM, testnum; \
code; \
li x7, MASK_XLEN(correctval); \
+ li TESTNUM, testnum; \
bne testreg, x7, fail;
# We use a macro hack to simpify code generation for various numbers