mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-19 03:40:26 +08:00
genrecog.c (add_to_sequence): Move allow_const_int test outside known predicate block...
* genrecog.c (add_to_sequence): Move allow_const_int test outside known predicate block; default allow_const_int true. From-SVN: r29885
This commit is contained in:
parent
8015b78d41
commit
ec1c89e60a
@ -1,3 +1,8 @@
|
||||
Sun Oct 10 02:41:41 1999 Richard Henderson <rth@cygnus.com>
|
||||
|
||||
* genrecog.c (add_to_sequence): Move allow_const_int test outside
|
||||
known predicate block; default allow_const_int true.
|
||||
|
||||
Sun Oct 10 00:43:08 1999 Richard Henderson <rth@cygnus.com>
|
||||
|
||||
* i386.h (CC1_SPEC): Typo -- use cc1_cpu.
|
||||
|
@ -402,6 +402,7 @@ add_to_sequence (pattern, last, position, insn_type, top)
|
||||
{
|
||||
const char *pred_name;
|
||||
RTX_CODE was_code = code;
|
||||
int allows_const_int = 1;
|
||||
|
||||
if (code == MATCH_SCRATCH)
|
||||
{
|
||||
@ -462,10 +463,6 @@ add_to_sequence (pattern, last, position, insn_type, top)
|
||||
allows_const_int = 1;
|
||||
break;
|
||||
}
|
||||
|
||||
/* Can't enforce a mode if we allow const_int. */
|
||||
if (allows_const_int)
|
||||
mode = VOIDmode;
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -478,12 +475,10 @@ add_to_sequence (pattern, last, position, insn_type, top)
|
||||
#endif
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Wildcard match. Can't enforce a mode because we allow
|
||||
anything -- const_int included. */
|
||||
mode = VOIDmode;
|
||||
}
|
||||
|
||||
/* Can't enforce a mode if we allow const_int. */
|
||||
if (allows_const_int)
|
||||
mode = VOIDmode;
|
||||
|
||||
/* Accept the operand, ie. record it in `operands'. */
|
||||
test = new_decision_test (DT_accept_op, &place);
|
||||
@ -2417,3 +2412,14 @@ debug_decision (d)
|
||||
{
|
||||
debug_decision_0 (d, 0, 1000000);
|
||||
}
|
||||
|
||||
void
|
||||
debug_decision_list (d)
|
||||
struct decision *d;
|
||||
{
|
||||
while (d)
|
||||
{
|
||||
debug_decision_0 (d, 0, 0);
|
||||
d = d->next;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user