[Bug middle-end/107370] long double sqrtl constant folding is wrong

jacob at jacob dot remcomp.fr gcc-bugzilla@gcc.gnu.org
Mon Oct 24 20:01:44 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107370

--- Comment #9 from jacob navia <jacob at jacob dot remcomp.fr> ---
Actually, this looks that a bug in all versions of gcc!
Using the "GP" calculator I obtain:
1.414213562373095048801688724209698078
Using the "bc" calculator

~ % bc
bc 1.06
Copyright 1991-1994, 1997, 1998, 2000 Free Software Foundation, Inc.
This is free software with ABSOLUTELY NO WARRANTY.
For details type `warranty'. 
scale=33
sqrt(2)
1.414213562373095048801688724209698

All agree: gcc is just wrong.


More information about the Gcc-bugs mailing list