[Bug target/103605] [PowerPC] fmin/fmax should be inlined always with xsmindp/xsmaxdp
guihaoc at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Apr 27 05:32:22 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103605
--- Comment #6 from HaoChen Gui <guihaoc at gcc dot gnu.org> ---
gcc -O0 -fsignaling-nans -D_WANT_SNAN -lm -o main main.c && ./main
(nan, 3.0), fmin: 3.0, builtin: 3.0, xsmincdp: 3.0, xsmindp: 3.0
(3.0, nan), fmin: 3.0, builtin: nan, xsmincdp: nan, xsmindp: 3.0
(snan, 3.0), fmin: nan, builtin: 3.0, xsmincdp: 3.0, xsmindp: nan
(3.0, snan), fmin: nan, builtin: snan, xsmincdp: snan, xsmindp: nan
(snan, snan), fmin: nan, builtin: snan, xsmincdp: snan, xsmindp: nan
For 'fmin', the result is qnan if either argument is snan. The result of
'xsmindp' matches 'fmin'.
I will make patch to implement fmin_optab by xsmindp and fmax_optab by xsmaxdp.
Thanks.
More information about the Gcc-bugs
mailing list