genemit.c (gen_exp): Use const_int_rtx whenever possible.
authorKazu Hirata <kazu@cs.umass.edu>
Fri, 6 Feb 2004 05:59:15 +0000 (05:59 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Fri, 6 Feb 2004 05:59:15 +0000 (05:59 +0000)
* genemit.c (gen_exp) [CONST_INT]: Use const_int_rtx whenever
possible.

From-SVN: r77379

gcc/ChangeLog
gcc/genemit.c

index 5833a503d7955de5cb0d1b409321598ed40790bb..a1edf053b25123a7aae9796a08f3092124f3a459 100644 (file)
@@ -1,3 +1,8 @@
+2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * genemit.c (gen_exp) [CONST_INT]: Use const_int_rtx whenever
+       possible.
+
 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
 
        * reload1.c (eliminate_regs_in_insn): If a set has a REG_EQUAL
index f1a2abdf64461c9df626091a408cffc9fc8cef0e..00cf8423201dd366952de0d8397257227a9daa10 100644 (file)
@@ -243,6 +243,10 @@ gen_exp (rtx x, enum rtx_code subroutine_type, char *used)
        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