This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/19653] x87 reg allocated for constants for -mfpmath=sse
- From: "bonzini at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Jul 2005 08:45:38 -0000
- Subject: [Bug target/19653] x87 reg allocated for constants for -mfpmath=sse
- References: <20050127083359.19653.uros@kss-loka.si>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bonzini at gcc dot gnu dot org 2005-07-14 08:45 -------
> But I don't see immediately how reload could be convinced to do so
> automatically, as the choice of the reload class for one insn is independend
> from the choices of reloads for the same reg but in other insns.
We can use PREFERRED_RELOAD_CLASS and PREFERRED_OUTPUT_RELOAD_CLASS. I am not
sure if the fix is over-eager, but it works great on libsse2. Every fld that
was there disappears, and from a cursory check, in current mainline's code all
of them could have been inherited.
Patches are at:
- http://gcc.gnu.org/ml/gcc-patches/2005-07/msg00914.html (regclass)
- http://gcc.gnu.org/ml/gcc-patches/2005-07/msg00983.html (reload+i386)
It is also necessary to remove from the MD the `#' hints for regclass, with
sed -i 's/#[^",\][^",]*\([",]\)/\1/g' i386.md
Paolo
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19653