X-Git-Url: https://git.libre-soc.org/?p=riscv-tests.git;a=blobdiff_plain;f=isa%2Frv64ud%2Ffcmp.S;h=7727a2871fc5af012f2ba1b957269af117b3d1bf;hp=39e6023a2b360da6b3c94dedbc3c2d29b65b4029;hb=49f478416cec9f73801fdc5dedf9955494be8c66;hpb=018aea17aca9abb6221e1a59d943ecdd386cc8ec diff --git a/isa/rv64ud/fcmp.S b/isa/rv64ud/fcmp.S index 39e6023..7727a28 100644 --- a/isa/rv64ud/fcmp.S +++ b/isa/rv64ud/fcmp.S @@ -17,6 +17,12 @@ RVTEST_CODE_BEGIN # Arithmetic tests #------------------------------------------------------------- +#if __riscv_xlen == 32 + # Replace the function with the 32-bit variant defined in test_macros.h + #undef TEST_FP_CMP_OP_D + #define TEST_FP_CMP_OP_D TEST_FP_CMP_OP_D32 +#endif + TEST_FP_CMP_OP_D( 2, feq.d, 0x00, 1, -1.36, -1.36) TEST_FP_CMP_OP_D( 3, fle.d, 0x00, 1, -1.36, -1.36) TEST_FP_CMP_OP_D( 4, flt.d, 0x00, 0, -1.36, -1.36)