This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [power7-meissner] Add __builtin_bswap{16,64} support to powerpc
On Tue, Jun 16, 2009 at 03:14:59PM -0700, Richard Henderson wrote:
> >+(define_expand "bswaphi2"
> >+ [(parallel [(set (match_operand:HI 0 "reg_or_mem_operand" "")
> >+ (bswap:HI
> >+ (match_operand:HI 1 "reg_or_mem_operand" "")))
> >+ (clobber (match_scratch:SI 2 ""))])]
> >+ ""
> >+{
> >+ if (!REG_P (operands[0]) && !REG_P (operands[1]))
> >+ operands[1] = force_reg (SImode, operands[1]);
> >+})
>
> Wrong mode for the force_reg.
Yes, it looks like I missed an edit from removing the SI hacks. Thanks.
--
Michael Meissner, IBM
4 Technology Place Drive, MS 2203A, Westford, MA, 01886, USA
meissner@linux.vnet.ibm.com