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]

Committed, MMIX: Another target apologist blurb in gcc.c-torture/execute/20101011-1.c


That test now looks a bit silly with the dozen+1 exceptions.  But, I
guess with just this one(?) test there's little sense in adding an
effective target to describe that division by 0 doesn't signal.  Other
than keeping it in just one place, of course.  But, committed.

gcc/testsuite:
	* gcc.c-torture/execute/20101011-1.c [__MMIX__] (DO_TEST): Define as 0.

Index: gcc/testsuite/gcc.c-torture/execute/20101011-1.c
===================================================================
--- gcc/testsuite/gcc.c-torture/execute/20101011-1.c	(revision 210305)
+++ gcc/testsuite/gcc.c-torture/execute/20101011-1.c	(working copy)
@@ -42,6 +42,10 @@
 #elif defined (__CRIS__)
   /* No SIGFPE for CRIS integer division.  */
 # define DO_TEST 0
+#elif defined (__MMIX__)
+/* By default we emit a sequence with DIVU, which "never signals an
+   exceptional condition, even when dividing by zero".  */
+# define DO_TEST 0
 #elif defined (__arc__)
   /* No SIGFPE for ARC integer division.  */
 # define DO_TEST 0

brgds, H-P


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