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

2020-02-23 Thread Kito Cheng
Thanks, committed :) On Sat, Feb 22, 2020 at 6:10 AM Jim Wilson wrote: > > On Fri, Feb 21, 2020 at 1:04 AM Kito Cheng wrote: > > * config/riscv/riscv.c (riscv_emit_float_compare): Change the code > > gen > > for LTGT. > > (riscv_rtx_costs): Update cost model for LTGT. >

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

2020-02-21 Thread Jim Wilson
On Fri, Feb 21, 2020 at 1:04 AM Kito Cheng wrote: > * config/riscv/riscv.c (riscv_emit_float_compare): Change the code gen > for LTGT. > (riscv_rtx_costs): Update cost model for LTGT. Thanks. This looks good to me. Jim

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

2020-02-21 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