riscv: Fix ftoi and ftof(long double->float)
commit1ada32900b73e2b93b9420a19992a9512248d854
authorMichael Matz <matz@suse.de>
Mon, 22 Jul 2019 00:31:08 +0000 (22 02:31 +0200)
committerMichael Matz <matz@suse.de>
Sun, 1 Sep 2019 21:13:20 +0000 (1 23:13 +0200)
treec5345bcdc9fc5f6671ca0c3c67fe61a07c8f7c05
parent06184aec536c93ec24bb609b28546390b4f0d255
riscv: Fix ftoi and ftof(long double->float)

float to int must be truncations, not normal rounding.
And ftof was typoed to select the wrong conversion function.

This fixes tcctest.c completely.  (make -C tests test1)
riscv64-gen.c