From ff31610ef70ef4e4fa6cdd5a752cfad11cbbcfd8 Mon Sep 17 00:00:00 2001 From: Dan Petrisko <petrisko@cs.washington.edu> Date: Mon, 3 Jun 2024 09:43:32 -0700 Subject: [PATCH] Correcting IO assertion macros (#426) * 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> --- riscv-test-suite/env/test_macros.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/riscv-test-suite/env/test_macros.h b/riscv-test-suite/env/test_macros.h index 20df01a96..0b5cca2ec 100644 --- a/riscv-test-suite/env/test_macros.h +++ b/riscv-test-suite/env/test_macros.h @@ -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; \