diff mbox series

[moxie] Adjust divide-by-zero testcase for moxie

Message ID 87woqkc282.fsf@laptop.atgreen.org
State New
Headers show
Series [moxie] Adjust divide-by-zero testcase for moxie | expand

Commit Message

Anthony Green Oct. 14, 2018, 9:22 a.m. UTC
This patch adjusts one of the c-torture tests to account for the
possible lack of divide-by-zero exceptions on certain moxie targets.

Committed.


gcc/testsuite/

2018-10-14  Anthony Green  <green@moxielogic.com>

	* gcc.c-torture/execute/20101011-1.c: Adjust for moxie.
diff mbox series

Patch

Index: gcc/testsuite/gcc.c-torture/execute/20101011-1.c
===================================================================
--- gcc/testsuite/gcc.c-torture/execute/20101011-1.c	(revision 265146)
+++ gcc/testsuite/gcc.c-torture/execute/20101011-1.c	(working copy)
@@ -97,6 +97,9 @@ 
   /* This presently doesn't raise SIGFPE even on csky-linux-gnu, much
      less bare metal.  See the implementation of __divsi3 in libgcc.  */
 # define DO_TEST 0
+#elif defined (__moxie__)
+  /* Not all moxie configurations may raise exceptions.  */
+# define DO_TEST 0
 #else
 # define DO_TEST 1
 #endif