summaryrefslogtreecommitdiff
path: root/gcc/genemit.c
diff options
context:
space:
mode:
authorkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2004-02-06 05:59:15 +0000
committerkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2004-02-06 05:59:15 +0000
commit949168fb9ddbcf5e51903426bc11eef524fa735f (patch)
tree1a8ab1587c0acbfddf24abc85ad6c0021b4020c3 /gcc/genemit.c
parent9feec5c7c3cc304b6c9b6d97a6a6d53d4e86e862 (diff)
downloadgcc-949168fb9ddbcf5e51903426bc11eef524fa735f.tar.gz
* genemit.c (gen_exp) [CONST_INT]: Use const_int_rtx whenever
possible. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77379 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/genemit.c')
-rw-r--r--gcc/genemit.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/genemit.c b/gcc/genemit.c
index f1a2abdf644..00cf8423201 100644
--- a/gcc/genemit.c
+++ b/gcc/genemit.c
@@ -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