Re: [Valgrind-users] Cubic root of zero gives wrong result with clang 64-bit

2021-10-21 Thread Paul Floyd
On 21/10/2021 20:45, Florian Weimer wrote: * Paul Floyd: Unless someone else has an Idea this is going to need some debugging inside Valgrind. It's probably the glibc implementation that is incorrectly executed by valgrind. “g++ -fno-builtin” reproduces the issue with the original sources.

Re: [Valgrind-users] Cubic root of zero gives wrong result with clang 64-bit

2021-10-21 Thread Florian Weimer
* Paul Floyd: > Unless someone else has an Idea this is going to need some debugging > inside Valgrind. It's probably the glibc implementation that is incorrectly executed by valgrind. “g++ -fno-builtin” reproduces the issue with the original sources. _

Re: [Valgrind-users] Cubic root of zero gives wrong result with clang 64-bit

2021-10-20 Thread Paul Floyd
On 20/10/2021 20:13, Paul Floyd wrote: On 10/20/21 16:16, Paul FLOYD wrote: Message du 20/10/21 17:14 De : "Vladislav Yaglamunov" A : valgrind-users@lists.sourceforge.net Copie à : Objet : [Valgrind-users] Cubic root of zero gives wrong result with clang 64-bit I am usin

Re: [Valgrind-users] Cubic root of zero gives wrong result with clang 64-bit

2021-10-20 Thread Paul Floyd
On 10/20/21 16:16, Paul FLOYD wrote: Message du 20/10/21 17:14 De : "Vladislav Yaglamunov" A : valgrind-users@lists.sourceforge.net Copie à : Objet : [Valgrind-users] Cubic root of zero gives wrong result with clang 64-bit I am using Valgrind 3.17.0 and noticed a strange behavior whi

Re: [Valgrind-users] Cubic root of zero gives wrong result with clang 64-bit

2021-10-20 Thread Paul FLOYD
> Message du 20/10/21 17:14 > De : "Vladislav Yaglamunov" > A : valgrind-users@lists.sourceforge.net > Copie à : > Objet : [Valgrind-users] Cubic root of zero gives wrong result with clang > 64-bit > >Hi, >I am using Valgrind 3.17.0 and noticed a

[Valgrind-users] Cubic root of zero gives wrong result with clang 64-bit

2021-10-20 Thread Vladislav Yaglamunov
Hi, I am using Valgrind 3.17.0 and noticed a strange behavior while running a code compiled with clang: #include #include int main() { long double x = std::cbrtl(0.0L); printf("%Lf", x); return 0; } This example gives complete wrong output: clang++ cbrtl.cpp -o cbrtl && valgrind