https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103605
HaoChen Gui changed:
What|Removed |Added
Resolution|--- |FIXED
Status|UNCONFIRMED
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103605
--- Comment #9 from CVS Commits ---
The master branch has been updated by HaoChen Gui :
https://gcc.gnu.org/g:54ce3cbd285d453b954c281bb3ad38bee2f65330
commit r14-2758-g54ce3cbd285d453b954c281bb3ad38bee2f65330
Author: Haochen Gui
Date: Tue
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103605
--- Comment #8 from Segher Boessenkool ---
(In reply to jos...@codesourcery.com from comment #4)
> > xsmindp
> > The minimum of a QNaN and any value is that value. The minimum of any value
> > and
> > an SNaN is that SNaN converted to a QNaN.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103605
--- Comment #7 from Kewen Lin ---
(In reply to pc from comment #5)
> I modified the testcase from comment #3 to clear-before and check-after
> FE_INVALID exception bit for each operation:
> --
> $ /opt/gcc-nightly/trunk/bin/gcc -O2 -o
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103605
--- Comment #6 from HaoChen Gui ---
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,
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103605
--- Comment #5 from pc at gcc dot gnu.org ---
I modified the testcase from comment #3 to clear-before and check-after
FE_INVALID exception bit for each operation:
--
$ /opt/gcc-nightly/trunk/bin/gcc -O2 -o xsmindp-test xsmindp-test.c xsmindp.c
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103605
--- Comment #4 from joseph at codesourcery dot com ---
On Tue, 26 Apr 2022, guihaoc at gcc dot gnu.org via Gcc-bugs wrote:
> C99/11 standard
> If just one argument is a NaN, the fmin functions return the other argument
> (if
> both arguments
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103605
--- Comment #3 from pc at gcc dot gnu.org ---
Here's a test which exercises all three options:
- fmin () (glibc 2.28)
- xsmincdp (ironically, via __builtin_vsx_xsmindp)
- xsmindp (via asm)
--
$ cat xsmindp.c
#include
#include
int main (int
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103605
HaoChen Gui changed:
What|Removed |Added
CC||guihaoc at gcc dot gnu.org
--- Comment
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103605
--- Comment #1 from pc at gcc dot gnu.org ---
$ cat fmin.c
#include
double fm (double d0, double d1) {
return fmin (d0, d1);
}
10 matches
Mail list logo