This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/86367] FRE1 tree pass deletes code in gcc.target/powerpc/nan128-1.c when long double is IEEE 128
- From: "meissner at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 29 Jun 2018 21:43:26 +0000
- Subject: [Bug tree-optimization/86367] FRE1 tree pass deletes code in gcc.target/powerpc/nan128-1.c when long double is IEEE 128
- Auto-submitted: auto-generated
- References: <bug-86367-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86367
--- Comment #5 from Michael Meissner <meissner at gcc dot gnu.org> ---
Created attachment 44342
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44342&action=edit
Patch to map 'q' builtins to 'l' instead of 'f128'
This patch 'fixes' the problem by changing the __builtin_nanq and
__builtin_nansq functions to __builtin_nanl and __builtin_nansl when long
double is IEEE, but I suspect it is just papering over the problem. If you
call __builtin_nanf128, it will still fail.