aboutsummaryrefslogtreecommitdiff
path: root/isa/macros/scalar/test_macros.h
diff options
context:
space:
mode:
Diffstat (limited to 'isa/macros/scalar/test_macros.h')
-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 a8a78a7..ee352e4 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