riscv: Fix ftoi and ftof(long double->float)