* genattrtab.c
@ 1998-04-14 15:23 John Carr
1998-04-14 21:01 ` genattrtab.c Jeffrey A Law
0 siblings, 1 reply; 2+ messages in thread
From: John Carr @ 1998-04-14 15:23 UTC (permalink / raw)
To: egcs
This patch adds support for match_insn in define_attr.
* genattrtab.c (check_attr_test): Handle MATCH_INSN like MATCH_OPERAND.
(write_test_expr): Allow MATCH_INSN.
*** genattrtab.c 1998/04/04 17:38:05 1.24
--- genattrtab.c 1998/04/14 19:51:26
*************** check_attr_test (exp, is_const)
*** 1045,1054 ****
XEXP (exp, 0) = check_attr_test (XEXP (exp, 0), is_const);
break;
case MATCH_OPERAND:
if (is_const)
fatal ("RTL operator \"%s\" not valid in constant attribute test",
! GET_RTX_NAME (MATCH_OPERAND));
/* These cases can't be simplified. */
RTX_UNCHANGING_P (exp) = 1;
break;
--- 1045,1055 ----
XEXP (exp, 0) = check_attr_test (XEXP (exp, 0), is_const);
break;
+ case MATCH_INSN:
case MATCH_OPERAND:
if (is_const)
fatal ("RTL operator \"%s\" not valid in constant attribute test",
! GET_RTX_NAME (GET_CODE (exp)));
/* These cases can't be simplified. */
RTX_UNCHANGING_P (exp) = 1;
break;
*************** write_test_expr (exp, flags)
*** 4623,4628 ****
--- 4624,4633 ----
else
printf ("%s (operands[%d], %smode)",
XSTR (exp, 1), XINT (exp, 0), GET_MODE_NAME (GET_MODE (exp)));
+ break;
+
+ case MATCH_INSN:
+ printf ("%s (insn)", XSTR (exp, 0));
break;
/* Constant integer. */
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: genattrtab.c
1998-04-14 15:23 genattrtab.c John Carr
@ 1998-04-14 21:01 ` Jeffrey A Law
0 siblings, 0 replies; 2+ messages in thread
From: Jeffrey A Law @ 1998-04-14 21:01 UTC (permalink / raw)
To: John Carr; +Cc: egcs, wilson
In message < 199804141954.PAA13862@jfc. >you write:
>
> This patch adds support for match_insn in define_attr.
>
> * genattrtab.c (check_attr_test): Handle MATCH_INSN like MATCH_OPERAND.
> (write_test_expr): Allow MATCH_INSN.
Thanks. Installed.
I assume this is needed for some (not yet submitted) patches? :-)
jeff
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1998-04-14 21:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-04-14 15:23 genattrtab.c John Carr
1998-04-14 21:01 ` genattrtab.c Jeffrey A Law
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).