summaryrefslogtreecommitdiffstats
path: root/gcc/genattrtab.c
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-04-14 21:00:57 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-04-14 21:00:57 +0000
commit5da465aa3c69b21b27d585ffc59e153adc1e46bb (patch)
tree6bdf3c8fc892022ee234b2fddb84420964967f0d /gcc/genattrtab.c
parent5a2d437e59ba4dcb7df03be379e9bc5d484135fb (diff)
downloadppe42-gcc-5da465aa3c69b21b27d585ffc59e153adc1e46bb.tar.gz
ppe42-gcc-5da465aa3c69b21b27d585ffc59e153adc1e46bb.zip
* genattrtab.c (check_attr_test): Handle MATCH_INSN like MATCH_OPERAND.
(write_test_expr): Allow MATCH_INSN. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19213 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/genattrtab.c')
-rw-r--r--gcc/genattrtab.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/genattrtab.c b/gcc/genattrtab.c
index d0b481ec997..374f50f390d 100644
--- a/gcc/genattrtab.c
+++ b/gcc/genattrtab.c
@@ -1045,10 +1045,11 @@ check_attr_test (exp, is_const)
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 (MATCH_OPERAND));
+ GET_RTX_NAME (GET_CODE (exp)));
/* These cases can't be simplified. */
RTX_UNCHANGING_P (exp) = 1;
break;
@@ -4625,6 +4626,10 @@ write_test_expr (exp, flags)
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. */
case CONST_INT:
printf (HOST_WIDE_INT_PRINT_DEC, XWINT (exp, 0));
OpenPOWER on IntegriCloud