Skip to content

Commit

Permalink
Update test_macros.h
Browse files Browse the repository at this point in the history
Signed-off-by: Dan Petrisko <[email protected]>
  • Loading branch information
dpetrisko authored and jamesbeyond committed Jun 3, 2024
1 parent c96fa2f commit aa8d177
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions riscv-test-suite/env/test_macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -796,12 +796,16 @@ 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_SFPR_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; \
RVTEST_SIGUPD_FID(swreg,destreg,flagreg) ;\
RVMODEL_IO_ASSERT_DFPR_EQ(testreg, destreg, correctval)
RVMODEL_IO_ASSERT_GPR_EQ(testreg, destreg, correctval)

#define TEST_AUIPC(inst, destreg, correctval, imm, swreg, offset, testreg) ;\
TEST_CASE(testreg, destreg, correctval, swreg, offset, \
Expand Down

0 comments on commit aa8d177

Please sign in to comment.