This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/79004] ICE in gcc.dg/torture/fp-int-convert-float128-ieee.c with -mcpu=power9
- 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: Tue, 10 Jan 2017 00:24:53 +0000
- Subject: [Bug target/79004] ICE in gcc.dg/torture/fp-int-convert-float128-ieee.c with -mcpu=power9
- Auto-submitted: auto-generated
- References: <bug-79004-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79004
--- Comment #5 from Michael Meissner <meissner at gcc dot gnu.org> ---
Created attachment 40484
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40484&action=edit
Proposed patch to fix the problem
It was decided to split PR target/79004 into 2 parts. This patch fixes the
problem by disabling the optimization of loading char/short variables from
memory and converting them to IEEE 128-bit floating point in the vector
registers. This patch will have the effect that the value is first loaded into
a GPR, sign/zero extended, and then moved over to an Altivec register to do the
conversion.
PR target/79038 is an enhancement request to rework the integer<->IEEE 128-bit
floating conversions to match the current float/double conversions with regard
to small integers.