Accept a unary operator in constrain_operands
From-SVN: r13017
This commit is contained in:
parent
ff428c90a4
commit
b85f21c09b
1 changed files with 6 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
||||||
/* Subroutines used by or related to instruction recognition.
|
/* Subroutines used by or related to instruction recognition.
|
||||||
Copyright (C) 1987, 88, 91, 92, 93, 1994 Free Software Foundation, Inc.
|
Copyright (C) 1987, 88, 91-5, 1996 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of GNU CC.
|
This file is part of GNU CC.
|
||||||
|
|
||||||
|
@ -1652,6 +1652,11 @@ constrain_operands (insn_code_num, strict)
|
||||||
|
|
||||||
earlyclobber[opno] = 0;
|
earlyclobber[opno] = 0;
|
||||||
|
|
||||||
|
/* A unary operator may be accepted by the predicate, but it
|
||||||
|
is irrelevant for matching contraints. */
|
||||||
|
if (GET_RTX_CLASS (GET_CODE (op)) == '1')
|
||||||
|
op = XEXP (op, 0);
|
||||||
|
|
||||||
if (GET_CODE (op) == SUBREG)
|
if (GET_CODE (op) == SUBREG)
|
||||||
{
|
{
|
||||||
if (GET_CODE (SUBREG_REG (op)) == REG
|
if (GET_CODE (SUBREG_REG (op)) == REG
|
||||||
|
|
Loading…
Add table
Reference in a new issue