From 6f6547765e1283d7a76888fe0eb0c5b5318d9df9 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Sun, 12 Jul 1992 17:42:39 -0400 Subject: entered into RCS From-SVN: r1580 --- gcc/genpeep.c | 5 +++++ gcc/regclass.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'gcc') diff --git a/gcc/genpeep.c b/gcc/genpeep.c index ed30f11..aeac6e0 100644 --- a/gcc/genpeep.c +++ b/gcc/genpeep.c @@ -321,8 +321,13 @@ match_rtx (x, path, fail_label) printf (";\n"); } +#if HOST_BITS_PER_WIDE_INT == HOST_BITS_PER_INT printf (" if (XWINT (x, %d) != %d) goto L%d;\n", i, XWINT (x, i), fail_label); +#else + printf (" if (XWINT (x, %d) != %ld) goto L%d;\n", + i, XWINT (x, i), fail_label); +#endif } else if (fmt[i] == 's') { diff --git a/gcc/regclass.c b/gcc/regclass.c index cd5b0d0..6c6e029 100644 --- a/gcc/regclass.c +++ b/gcc/regclass.c @@ -1139,7 +1139,7 @@ record_reg_classes (n_alts, n_ops, ops, modes, constraints, insn) else if (win || (GET_CODE (op) == REG - && reg_fits_class_p (op, classes[i], 0, mode))) + && reg_fits_class_p (op, classes[i], 0, GET_MODE (op)))) ; /* If registers are valid, the cost of this alternative includes -- cgit v1.1