X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=isa%2Frv64ud%2Ffadd.S;h=51ca82db712d4fa083a99cb2a6275a5fec7471f6;hb=49f478416cec9f73801fdc5dedf9955494be8c66;hp=71e7f8249bcfe21ea45427cef210eea92ed2b7a9;hpb=e9951fc39dff4f4030cdfaaf479b936ae37799e2;p=riscv-tests.git diff --git a/isa/rv64ud/fadd.S b/isa/rv64ud/fadd.S index 71e7f82..51ca82d 100644 --- a/isa/rv64ud/fadd.S +++ b/isa/rv64ud/fadd.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_OP2_D + #define TEST_FP_OP2_D TEST_FP_OP2_D32 +#endif + #------------------------------------------------------------- # Arithmetic tests #-------------------------------------------------------------