Re: [PATCH] Avoid FROM being overwritten in expand_fix.

2021-09-06 Thread Richard Biener via Gcc-patches
On Mon, 6 Sep 2021, Hongtao Liu wrote: > On Mon, Sep 6, 2021 at 6:03 PM Richard Biener via Gcc-patches > wrote: > > > > On Mon, 6 Sep 2021, liuhongt wrote: > > > > > Hi: > > > For the conversion from _Float16 to int, if the corresponding optab > > > does not exist, the compiler will try the wid

Re: [PATCH] Avoid FROM being overwritten in expand_fix.

2021-09-06 Thread Hongtao Liu via Gcc-patches
On Mon, Sep 6, 2021 at 6:03 PM Richard Biener via Gcc-patches wrote: > > On Mon, 6 Sep 2021, liuhongt wrote: > > > Hi: > > For the conversion from _Float16 to int, if the corresponding optab > > does not exist, the compiler will try the wider mode (SFmode here), > > but when floatsfsi exists but

Re: [PATCH] Avoid FROM being overwritten in expand_fix.

2021-09-06 Thread Richard Biener via Gcc-patches
On Mon, 6 Sep 2021, liuhongt wrote: > Hi: > For the conversion from _Float16 to int, if the corresponding optab > does not exist, the compiler will try the wider mode (SFmode here), > but when floatsfsi exists but FAIL, FROM will be rewritten, which > leads to a PR runtime error. > > Boostrap

[PATCH] Avoid FROM being overwritten in expand_fix.

2021-09-06 Thread liuhongt via Gcc-patches
Hi: For the conversion from _Float16 to int, if the corresponding optab does not exist, the compiler will try the wider mode (SFmode here), but when floatsfsi exists but FAIL, FROM will be rewritten, which leads to a PR runtime error. Boostrapped and regtested on x86_64-linux-gnu{-m32,}. Ok