summaryrefslogtreecommitdiff
path: root/gcc/genemit.c
diff options
context:
space:
mode:
authorrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>1992-07-06 20:02:55 +0000
committerrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>1992-07-06 20:02:55 +0000
commit9259c67fe68598b9b57efb61d4d97f6770248ace (patch)
tree671ff37b6a12caa0cb298237ca1569f3807d5658 /gcc/genemit.c
parent4303221cc507519758017bfbf78542b2be635a63 (diff)
downloadgcc-9259c67fe68598b9b57efb61d4d97f6770248ace.tar.gz
entered into RCS
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@1470 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/genemit.c')
-rw-r--r--gcc/genemit.c44
1 files changed, 23 insertions, 21 deletions
diff --git a/gcc/genemit.c b/gcc/genemit.c
index 05f60f3921d..8f86925fa98 100644
--- a/gcc/genemit.c
+++ b/gcc/genemit.c
@@ -146,7 +146,7 @@ gen_exp (x)
if (x == 0)
{
- printf ("0");
+ printf ("NULL_RTX");
return;
}
@@ -202,25 +202,27 @@ gen_exp (x)
case CONST_INT:
if (INTVAL (x) == 0)
- {
- printf ("const0_rtx");
- return;
- }
- if (INTVAL (x) == 1)
- {
- printf ("const1_rtx");
- return;
- }
- if (INTVAL (x) == -1)
- {
- printf ("constm1_rtx");
- return;
- }
- if (INTVAL (x) == STORE_FLAG_VALUE)
- {
- printf ("const_true_rtx");
- return;
- }
+ printf ("const0_rtx");
+ else if (INTVAL (x) == 1)
+ printf ("const1_rtx");
+ else if (INTVAL (x) == -1)
+ printf ("constm1_rtx");
+ else if (INTVAL (x) == STORE_FLAG_VALUE)
+ printf ("const_true_rtx");
+ else
+ printf (
+#if HOST_BITS_PER_WIDE_INT == HOST_BITS_PER_INT
+ "GEN_INT (%d)",
+#else
+ "GEN_INT (%ld)",
+#endif
+ INTVAL (x));
+ return;
+
+ case CONST_DOUBLE:
+ /* These shouldn't be written in MD files. Instead, the appropriate
+ routines in varasm.c should be called. */
+ abort ();
}
printf ("gen_rtx (");
@@ -237,7 +239,7 @@ gen_exp (x)
if (fmt[i] == 'e' || fmt[i] == 'u')
gen_exp (XEXP (x, i));
else if (fmt[i] == 'i')
- printf ("%u", (unsigned) XINT (x, i));
+ printf ("%u", XINT (x, i));
else if (fmt[i] == 's')
printf ("\"%s\"", XSTR (x, i));
else if (fmt[i] == 'E')