Commit 519164a9 by Jim Wilson

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

From-SVN: r12594
parent a5049cf0
......@@ -2198,13 +2198,17 @@ arith_reg_operand (op, mode)
{
if (register_operand (op, mode))
{
int regno;
if (GET_CODE (op) == REG)
return (REGNO (op) != T_REG
&& REGNO (op) != PR_REG
&& REGNO (op) != FPUL_REG
&& REGNO (op) != MACH_REG
&& REGNO (op) != MACL_REG);
return 1;
regno = REGNO (op);
else if (GET_CODE (op) == SUBREG && GET_CODE (SUBREG_REG (op)) == REG)
regno = REGNO (SUBREG_REG (op));
else
return 1;
return (regno != T_REG && regno != PR_REG && regno != FPUL_REG
&& regno != MACH_REG && regno != MACL_REG);
}
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment