(arith_reg_operand): Reject SUBREG of an invalid hard reg.

From-SVN: r12594
This commit is contained in:
Jim Wilson 1996-08-05 14:27:22 -07:00
parent a5049cf050
commit 519164a9ed

View File

@ -2198,13 +2198,17 @@ arith_reg_operand (op, mode)
{ {
if (register_operand (op, mode)) if (register_operand (op, mode))
{ {
int regno;
if (GET_CODE (op) == REG) if (GET_CODE (op) == REG)
return (REGNO (op) != T_REG regno = REGNO (op);
&& REGNO (op) != PR_REG else if (GET_CODE (op) == SUBREG && GET_CODE (SUBREG_REG (op)) == REG)
&& REGNO (op) != FPUL_REG regno = REGNO (SUBREG_REG (op));
&& REGNO (op) != MACH_REG else
&& REGNO (op) != MACL_REG); return 1;
return 1;
return (regno != T_REG && regno != PR_REG && regno != FPUL_REG
&& regno != MACH_REG && regno != MACL_REG);
} }
return 0; return 0;
} }