This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] PR target/41331 -- fix powerpc bswap64 with -m32 -mpowerpc64
- From: David Edelsohn <dje dot gcc at gmail dot com>
- To: Michael Meissner <meissner at linux dot vnet dot ibm dot com>, gcc-patches at gcc dot gnu dot org
- Date: Thu, 10 Sep 2009 14:00:27 -0400
- Subject: Re: [PATCH] PR target/41331 -- fix powerpc bswap64 with -m32 -mpowerpc64
- References: <20090910163927.GA8162@hungry-tiger.westford.ibm.com>
On Thu, Sep 10, 2009 at 12:39 PM, Michael Meissner
<meissner@linux.vnet.ibm.com> wrote:
> This patch should fix the problems that I introduced with my changes on July
> 31st in __builtin_bswap64 if -m32 and -mpowerpc64 are used.
Why should rs6000_emit_add() use the MODE of OP0 instead of
TARGET_32BIT? gen_rtx_PLUS uses Pmode, which is based on
TARGET_32BIT. Using TARGET_32BIT seems like a self-test that one does
not pass an operand of the wrong MODE for an address.
Thanks, David