X-Git-Url: https://git.libre-soc.org/?p=riscv-tests.git;a=blobdiff_plain;f=isa%2Frv64ud%2Ffmadd.S;h=1e3ba669e324ec52964074d544ec8d34fe1a97f3;hp=7a69aada1abd83f666ade883057f9ca993198f3c;hb=49f478416cec9f73801fdc5dedf9955494be8c66;hpb=018aea17aca9abb6221e1a59d943ecdd386cc8ec diff --git a/isa/rv64ud/fmadd.S b/isa/rv64ud/fmadd.S index 7a69aad..1e3ba66 100644 --- a/isa/rv64ud/fmadd.S +++ b/isa/rv64ud/fmadd.S @@ -13,6 +13,12 @@ RVTEST_RV64UF RVTEST_CODE_BEGIN +#if __riscv_xlen == 32 + # Replace the function with the 32-bit variant defined in test_macros.h + #undef TEST_FP_OP3_D + #define TEST_FP_OP3_D TEST_FP_OP3_D32 +#endif + #------------------------------------------------------------- # Arithmetic tests #-------------------------------------------------------------