On Oct 25, 2024, "Andre Vieira (lists)" <andre.simoesdiasvie...@arm.com> wrote:
> I have to admit I am not super familiar with long doubles, either than > knowing they are 128-bit FP representations... but bisect has pointed > me to this patch when investigating a regression on > aarch64_be-none-elf for the libstdc++ testcase: > 26_numerics/complex/13450.cc > Can you just confirm this is 'wrong' and that the problem is likely to > be with the big-endian implementation of sqrtl in I'm guessing newlib? Yeah, this looks like a bug in newlib. sqrtl is always defined there, it manipulates long doubles' internal representation, but unlike double and float, its ieeefp.h doesn't distinguish between big and little endian. That should be easy to fix by defining another version of struct ieee_ext on big endian systems. -- Alexandre Oliva, happy hacker https://FSFLA.org/blogs/lxo/ Free Software Activist GNU Toolchain Engineer More tolerance and less prejudice are key for inclusion and diversity Excluding neuro-others for not behaving ""normal"" is *not* inclusive