[PATCH] Sparc64 fix

Jakub Jelinek jakub@redhat.com
Tue Apr 4 10:50:00 GMT 2000


On Tue, Apr 04, 2000 at 10:02:56AM -0700, Richard Henderson wrote:
> On Tue, Apr 04, 2000 at 06:40:53PM +0200, Jakub Jelinek wrote:
> >    [(set (match_operand:DI 0 "register_operand" "")
> >          (ne:DI (match_operand:DI 1 "register_operand" "")
> >                 (const_int 0)))]
> > -  "TARGET_ARCH64"
> > +  "TARGET_ARCH64 && REGNO(operands[0]) != REGNO(operands[1])"
> 
> register_operand matches subregs too.  Use true_regnum
> instead of REGNO.

true_regnum is not suitable for it either, unless a check for
reg_renumber != NULL is added to it, because the split condition can be
called before allocate_reg_info.
Shall I patch that or write some utility function for this case?

	Jakub


More information about the Gcc-patches mailing list