aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1992-04-17 22:37:55 +0000
committerRichard Stallman <rms@gnu.org>1992-04-17 22:37:55 +0000
commitc8470713623c22b28edb6249520cdf78df504433 (patch)
treea9424d88e3d292c55629bbdeb594ba1adf805004
parent32235b3084584f721c986755998033bea9633acb (diff)
downloadgcc-c8470713623c22b28edb6249520cdf78df504433.zip
gcc-c8470713623c22b28edb6249520cdf78df504433.tar.gz
gcc-c8470713623c22b28edb6249520cdf78df504433.tar.bz2
*** empty log message ***
From-SVN: r767
-rw-r--r--gcc/config/ns32k/ns32k.c20
1 files changed, 17 insertions, 3 deletions
diff --git a/gcc/config/ns32k/ns32k.c b/gcc/config/ns32k/ns32k.c
index 0cb876c..8dd0f03 100644
--- a/gcc/config/ns32k/ns32k.c
+++ b/gcc/config/ns32k/ns32k.c
@@ -374,9 +374,9 @@ print_operand (file, x, code)
char code;
{
if (code == '$')
- PUT_IMMEDIATE_PREFIX(file);
+ PUT_IMMEDIATE_PREFIX (file);
else if (code == '?')
- PUT_EXTERNAL_PREFIX(file);
+ PUT_EXTERNAL_PREFIX (file);
else if (GET_CODE (x) == REG)
fprintf (file, "%s", reg_names[REGNO (x)]);
else if (GET_CODE (x) == MEM)
@@ -422,6 +422,11 @@ print_operand (file, x, code)
u.i[0] = CONST_DOUBLE_LOW (x); u.i[1] = CONST_DOUBLE_HIGH (x);
PUT_IMMEDIATE_PREFIX (file);
#ifdef SEQUENT_ASM
+ /* We have no way of winning if we can't get the bits
+ for a sequent floating point number. */
+#if HOST_FLOAT_FORMAT != TARGET_FLOAT_FORMAT
+ abort ();
+#endif
{
union { float f; long l; } uu;
uu.f = u.d;
@@ -434,7 +439,10 @@ print_operand (file, x, code)
}
else
{
- PUT_IMMEDIATE_PREFIX(file);
+#ifndef NO_IMMEDIATE_PREFIX_IF_SYMBOLIC
+ if (GET_CODE (x) == CONST_INT)
+#endif
+ PUT_IMMEDIATE_PREFIX(file);
output_addr_const (file, x);
}
}
@@ -656,9 +664,15 @@ print_operand_address (file, addr)
if (GET_CODE (indexexp) != REG || REGNO (indexexp) >= 8)
abort ();
+#ifdef UTEK_ASM
+ fprintf (file, "[%c`%s]",
+ scales[scale],
+ reg_names[REGNO (indexexp)]);
+#else
fprintf (file, "[%s:%c]",
reg_names[REGNO (indexexp)],
scales[scale]);
+#endif
}
}