On 04/16/14 18:20, seg...@kernel.crashing.org wrote:
On Wed, Apr 16, 2014 at 02:45:28PM -0600, Jeff Law wrote:
Isn't the problem that operands 1 is a MEM which use the same register
as operands 3 in the memory address?

Yes, exactly.

ISTM either removing the memory constraint entirely, or splitting it off
into a separate alternative and only earlyclobbering that alternative
would be better.

Or am I missing something?

No, that does seem better :-)

I tried both your suggestions; the first results in better code.  Here's
a new patch.  As before, it builds and fixes the testcase, but I didn't
run the testsuite (I have no emulator set up).

Thanks,


Segher



gcc/

PR target/60822
2014-04-16  Segher Boessenkool  <seg...@kernel.crashing.org>

        * config/m68k/m68k.md (extendplussidi): Don't allow memory for
        operand 1.
Thanks. I tweaked the comment and added the testcase to the regression suite and installed the fix on the trunk.

Jeff

Reply via email to