X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=isa%2Frv64ud%2Ffdiv.S;h=f985fa1dbfd67c5549242a09e5d8e4f365212ad8;hb=49f478416cec9f73801fdc5dedf9955494be8c66;hp=8a9fd4df93db8b103365eaa88df1b89807ffab66;hpb=b6b5e81217c1f2a70ecb6883b1756859cd7bb999;p=riscv-tests.git diff --git a/isa/rv64ud/fdiv.S b/isa/rv64ud/fdiv.S index 8a9fd4d..f985fa1 100644 --- a/isa/rv64ud/fdiv.S +++ b/isa/rv64ud/fdiv.S @@ -13,6 +13,18 @@ RVTEST_RV64UF RVTEST_CODE_BEGIN +#if __riscv_xlen == 32 + # Replace the functions with the 32-bit variants defined in test_macros.h + #undef TEST_FP_OP2_D + #define TEST_FP_OP2_D TEST_FP_OP2_D32 + + #undef TEST_FP_OP1_D + #define TEST_FP_OP1_D TEST_FP_OP1_D32 + + #undef TEST_FP_OP1_D_DWORD_RESULT + #define TEST_FP_OP1_D_DWORD_RESULT TEST_FP_OP1_D32_DWORD_RESULT +#endif + #------------------------------------------------------------- # Arithmetic tests #-------------------------------------------------------------