aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1992-03-26 06:32:08 +0000
committerRichard Stallman <rms@gnu.org>1992-03-26 06:32:08 +0000
commit348affc3f0c5c828d99bde0864e419c3bc4320e7 (patch)
tree1b5085a429d9cc5b80308fa4a1910b86e46284da
parentc114787aa983c1d844837a448e4a552b7206fca9 (diff)
downloadgcc-348affc3f0c5c828d99bde0864e419c3bc4320e7.zip
gcc-348affc3f0c5c828d99bde0864e419c3bc4320e7.tar.gz
gcc-348affc3f0c5c828d99bde0864e419c3bc4320e7.tar.bz2
*** empty log message ***
From-SVN: r588
-rw-r--r--gcc/config/m68k/amix.h4
-rw-r--r--gcc/config/m68k/m68k.md7
2 files changed, 11 insertions, 0 deletions
diff --git a/gcc/config/m68k/amix.h b/gcc/config/m68k/amix.h
index b35511c..71efc92 100644
--- a/gcc/config/m68k/amix.h
+++ b/gcc/config/m68k/amix.h
@@ -21,6 +21,10 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "m68kv4.h"
+/* Alter assembler syntax for fsgldiv. */
+
+#define FSGLDIV_USE_S
+
/* Names to predefine in the preprocessor for this target machine. For the
Amiga, these definitions match those of the native AT&T compiler. Note
that we override the definition in m68kv4.h, where SVR4 is defined and
diff --git a/gcc/config/m68k/m68k.md b/gcc/config/m68k/m68k.md
index 9a12fd2..062027f 100644
--- a/gcc/config/m68k/m68k.md
+++ b/gcc/config/m68k/m68k.md
@@ -2665,10 +2665,17 @@
"TARGET_68881"
"*
{
+#ifdef FSGLDIV_USE_S
+ if (REG_P (operands[2]) && ! DATA_REG_P (operands[2]))
+ return (TARGET_68040_ONLY
+ ? \"fsdiv%.s %2,%0\"
+ : \"fsgldiv%.s %2,%0\");
+#else
if (REG_P (operands[2]) && ! DATA_REG_P (operands[2]))
return (TARGET_68040_ONLY
? \"fsdiv%.x %2,%0\"
: \"fsgldiv%.x %2,%0\");
+#endif
return (TARGET_68040_ONLY
? \"fsdiv%.s %f2,%0\"
: \"fsgldiv%.s %f2,%0\");