From cc4c133a3646b53c5b77bdd55d1efb896a19b161 Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Wed, 3 Nov 1993 20:36:59 +0000 Subject: (regclass): Consider commutativity even when one arg is a constant. From-SVN: r5985 --- gcc/regclass.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'gcc') diff --git a/gcc/regclass.c b/gcc/regclass.c index 3a488fc..1453d0e 100644 --- a/gcc/regclass.c +++ b/gcc/regclass.c @@ -757,13 +757,11 @@ regclass (f, nregs) } /* Check for commutative in a separate loop so everything will - have been initialized. Don't bother doing anything if the - second operand is a constant since that is the case - for which the constraints should have been written. */ + have been initialized. We must do this even if one operand + is a constant--see addsi3 in m68k.md. */ for (i = 0; i < noperands - 1; i++) - if (constraints[i][0] == '%' - && ! CONSTANT_P (recog_operand[i+1])) + if (constraints[i][0] == '%') { char *xconstraints[MAX_RECOG_OPERANDS]; int j; -- cgit v1.1