Skip to content

Commit

Permalink
Correcting IO assertion macros (riscv-non-isa#426)
Browse files Browse the repository at this point in the history
* Correcting IO assertion macros

Signed-off-by: Dan Petrisko <petrisko@cs.washington.edu>

* Update test_macros.h

Signed-off-by: Dan Petrisko <petrisko@cs.washington.edu>

---------

Signed-off-by: Dan Petrisko <petrisko@cs.washington.edu>
  • Loading branch information
dpetrisko authored Jun 3, 2024
1 parent 37e6e00 commit ff31610
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion riscv-test-suite/env/test_macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,11 @@ ADDI(swreg, swreg, RVMODEL_CBZ_BLOCKSIZE)
#define TEST_CASE_F(testreg, destreg, correctval, swreg, flagreg, code... ) ;\
code ;\
RVTEST_SIGUPD_F(swreg,destreg,flagreg) ;\
RVMODEL_IO_ASSERT_GPR_EQ(testreg, destreg, correctval)
#if FLEN==32 \
RVMODEL_IO_ASSERT_SFPR_EQ(testreg, destreg, correctval);\
#elif FLEN==64 \
RVMODEL_IO_ASSERT_DFPR_EQ(testreg, destreg, correctval);\
#endif

#define TEST_CASE_FID(testreg, destreg, correctval, swreg, flagreg, code... ) ;\
code; \
Expand Down

0 comments on commit ff31610

Please sign in to comment.