diff mbox series

[committed] fix a number of pdp11 target test failures

Message ID 2D1B40B6-3E8D-4031-8B2B-76CFC68DC575@comcast.net
State New
Headers show
Series [committed] fix a number of pdp11 target test failures | expand

Commit Message

Paul Koning May 26, 2018, 1:16 a.m. UTC
Sorry, it's been a while, previous message was incomplete.

This fixes a number of test failures due to test cases 
that are too large for pdp11 and should be skipped.  Also
one test case that asks for alignment larger than what
pdp11 supports.

 paul


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

	* gcc.c-torture/compile/20151204.c: Skip if pdp11.
	* gcc.c-torture/compile/pr55921.c: Ditto.
	* gcc.c-torture/compile/pr60655-1.c: Ditto.
	* gcc.c-torture/compile/vector-align-1.c: Add max alignment if pdp11.
diff mbox series

Patch

Index: testsuite/gcc.c-torture/compile/pr55921.c
===================================================================
--- testsuite/gcc.c-torture/compile/pr55921.c	(revision 260780)
+++ testsuite/gcc.c-torture/compile/pr55921.c	(revision 260781)
@@ -1,4 +1,5 @@ 
 /* PR tree-optimization/55921 */
+/* { dg-skip-if "Not enough registers" { "pdp11-*-*" } } */
 
 typedef union
 {
Index: testsuite/gcc.c-torture/compile/vector-align-1.c
===================================================================
--- testsuite/gcc.c-torture/compile/vector-align-1.c	(revision 260780)
+++ testsuite/gcc.c-torture/compile/vector-align-1.c	(revision 260781)
@@ -2,7 +2,11 @@ 
 
 /* If some target has a Max alignment less than 128, please create
    a #ifdef around the alignment and add your alignment.  */
+#ifdef __pdp11__
+#define alignment 2
+#else
 #define alignment 128
+#endif
 
 char x __attribute__((aligned(alignment),vector_size(2)));
 
Index: testsuite/gcc.c-torture/compile/20151204.c
===================================================================
--- testsuite/gcc.c-torture/compile/20151204.c	(revision 260780)
+++ testsuite/gcc.c-torture/compile/20151204.c	(revision 260781)
@@ -1,4 +1,4 @@ 
-/* { dg-skip-if "Array too big" { "avr-*-*" } } */
+/* { dg-skip-if "Array too big" { "avr-*-*" "pdp11-*-*" } } */
 
 typedef __SIZE_TYPE__ size_t;
 
Index: testsuite/gcc.c-torture/compile/pr60655-1.c
===================================================================
--- testsuite/gcc.c-torture/compile/pr60655-1.c	(revision 260780)
+++ testsuite/gcc.c-torture/compile/pr60655-1.c	(revision 260781)
@@ -1,4 +1,4 @@ 
-/* { dg-options "-fdata-sections" { target { { ! { { hppa*-*-hpux* } && { ! lp64 } } } && { ! nvptx-*-* } } } } */
+/* { dg-options "-fdata-sections" { target { { ! { { hppa*-*-hpux* } && { ! lp64 } } } && { ! "nvptx-*-* pdp11-*-*" } } } } */
 
 typedef unsigned char unit;
 typedef unit *unitptr;