Re: [PATCH] RISC-V: Adjust floating point code gen for LTGT compare

2020-02-19 Thread Jim Wilson
On Tue, Feb 18, 2020 at 9:29 PM Kito Cheng wrote: > * config/riscv/riscv.c (riscv_emit_float_compare): Change the code gen > for LTGT. I think you should update riscv_rtx_costs also. The comment is now wrong for LTGT, and the cost calculation is wrong too. Looks like it should b

[PATCH] RISC-V: Adjust floating point code gen for LTGT compare

2020-02-18 Thread Kito Cheng
- Using gcc.dg/torture/pr91323.c as testcase, so no new testcase introduced. - We use 3 eq compare for LTGT compare before, in order to prevent exception flags setting when any input is NaN. - According latest GCC document LTGT and discussion on pr91323 LTGT should signals on NaNs, li