From 348affc3f0c5c828d99bde0864e419c3bc4320e7 Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Thu, 26 Mar 1992 06:32:08 +0000 Subject: [PATCH] *** empty log message *** From-SVN: r588 --- gcc/config/m68k/amix.h | 4 ++++ gcc/config/m68k/m68k.md | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/gcc/config/m68k/amix.h b/gcc/config/m68k/amix.h index b35511c348b..71efc924bb0 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 9a12fd28ec8..062027fac09 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\"); -- 2.30.2