summaryrefslogtreecommitdiff
path: root/gcc/genpeep.c
diff options
context:
space:
mode:
authorrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>1992-07-10 23:05:50 +0000
committerrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>1992-07-10 23:05:50 +0000
commit2e19ac3cbe1964f48795f0f813b1521826eadd55 (patch)
tree95a62f66a293c4ed8e4768be6185a22e844fea89 /gcc/genpeep.c
parent34b1478f553153657cc33c3660e47ce4017d891a (diff)
downloadgcc-2e19ac3cbe1964f48795f0f813b1521826eadd55.tar.gz
*** empty log message ***
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@1554 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/genpeep.c')
-rw-r--r--gcc/genpeep.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/genpeep.c b/gcc/genpeep.c
index 10f75d1caab..ed30f11f25e 100644
--- a/gcc/genpeep.c
+++ b/gcc/genpeep.c
@@ -311,6 +311,19 @@ match_rtx (x, path, fail_label)
printf (" if (XINT (x, %d) != %d) goto L%d;\n",
i, XINT (x, i), fail_label);
}
+ else if (fmt[i] == 'w')
+ {
+ /* Make sure that at run time `x' is the RTX we want to test. */
+ if (i != 0)
+ {
+ printf (" x = ");
+ print_path (path);
+ printf (";\n");
+ }
+
+ printf (" if (XWINT (x, %d) != %d) goto L%d;\n",
+ i, XWINT (x, i), fail_label);
+ }
else if (fmt[i] == 's')
{
/* Make sure that at run time `x' is the RTX we want to test. */