This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH, pdp11] Fix 64 bit divide


This fixes a number of testsuite failures in pdp11.

Committed.

	paul

ChangeLog:

2018-11-25  Paul Koning  <ni1d@arrl.net>

	* config/pdp11/pdp11.h (TARGET_HAS_NO_HW_DIVIDE): Define.

Index: config/pdp11/pdp11.h
===================================================================
--- config/pdp11/pdp11.h	(revision 266438)
+++ config/pdp11/pdp11.h	(working copy)
@@ -143,6 +143,11 @@ extern const struct real_format pdp11_d_format;
 /* Define this if move instructions will actually fail to work
    when given unaligned data.  */
 #define STRICT_ALIGNMENT 1
+
+/* "HW_DIVIDE" actually means 64 by 32 bit divide.  While some PDP11
+   models have hardware divide, it is for 32 by 16 bits only, so we
+   call this platform "no hardware divide".  */
+#define TARGET_HAS_NO_HW_DIVIDE 1
 
 /* Standard register usage.  */
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]