From 27dbc399e23d5f9668363706accc76911d6d31fc Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Fri, 3 Jun 2022 13:12:01 -0700 Subject: 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. --- isa/macros/scalar/test_macros.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'isa/macros') 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 -- cgit v1.1