This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] genemit.c: Use const_int_rtx in insn-emit.c. (take 2)
Hi Richard,
> I'd much rather you keep these.
Bootstrapped on i686-pc-linux-gnu. OK to apply?
Kazu Hirata
2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
* genemit.c (gen_exp) [CONST_INT]: Use const_int_rtx whenever
possible.
Index: genemit.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/genemit.c,v
retrieving revision 1.90
diff -u -r1.90 genemit.c
--- genemit.c 5 Feb 2004 20:12:36 -0000 1.90
+++ genemit.c 6 Feb 2004 01:54:04 -0000
@@ -243,6 +243,10 @@
printf ("const1_rtx");
else if (INTVAL (x) == -1)
printf ("constm1_rtx");
+ else if (-MAX_SAVED_CONST_INT <= INTVAL (x)
+ && INTVAL (x) <= MAX_SAVED_CONST_INT)
+ printf ("const_int_rtx[MAX_SAVED_CONST_INT + (%d)]",
+ (int) INTVAL (x));
else if (INTVAL (x) == STORE_FLAG_VALUE)
printf ("const_true_rtx");
else