diff mbox series

[testsuite] Fix pdp11 test failures

Message ID 8FF3F31B-9D41-4215-A18C-9524A0FDA314@comcast.net
State New
Headers show
Series [testsuite] Fix pdp11 test failures | expand

Commit Message

Paul Koning Nov. 20, 2018, 1:54 a.m. UTC
This corrects a number of pdp11 test suite failures.  The first set fail due to larger than supported alignment.  The next two look for .ascii directives in the assembly output which pdp11 does not use.  The last one needs adjustment because CSE loads subroutine addresses into registers in this test.

Committed.

	paul

testsuite/ChangeLog:

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

	* gcc.c-torture/execute/align-3.c: Skip if pdp11.
	* gcc.c-torture/execute/pr23467.c: Ditto.
	* gcc.c-torture/execute/pr36093.c: Ditto.
	* gcc.c-torture/execute/pr43783.c: Ditto.
	* gcc.dg/const-elim-2.c: Xfail if pdp11.
	* gcc.dg/torture/pr36400.c: Ditto.
	* gcc.dg/tree-ssa/loop-1.c: Xfail for pdp11.  Add pdp11 to check
	for jsr.
diff mbox series

Patch

Index: gcc.c-torture/execute/align-3.c
===================================================================
--- gcc.c-torture/execute/align-3.c	(revision 266295)
+++ gcc.c-torture/execute/align-3.c	(working copy)
@@ -1,3 +1,5 @@ 
+/* { dg-skip-if "small alignment" { pdp11-*-* } } */
+
 void func(void) __attribute__((aligned(256)));
 
 void func(void) 
Index: gcc.c-torture/execute/pr23467.c
===================================================================
--- gcc.c-torture/execute/pr23467.c	(revision 266295)
+++ gcc.c-torture/execute/pr23467.c	(working copy)
@@ -1,3 +1,5 @@ 
+/* { dg-skip-if "small alignment" { pdp11-*-* } } */
+
 struct s1
 {
   int __attribute__ ((aligned (8))) a;
Index: gcc.c-torture/execute/pr36093.c
===================================================================
--- gcc.c-torture/execute/pr36093.c	(revision 266295)
+++ gcc.c-torture/execute/pr36093.c	(working copy)
@@ -1,3 +1,5 @@ 
+/* { dg-skip-if "small alignment" { pdp11-*-* } } */
+
 extern void abort (void);
 
 typedef struct Bar {
Index: gcc.c-torture/execute/pr43783.c
===================================================================
--- gcc.c-torture/execute/pr43783.c	(revision 266295)
+++ gcc.c-torture/execute/pr43783.c	(working copy)
@@ -1,3 +1,5 @@ 
+/* { dg-skip-if "small alignment" { pdp11-*-* } } */
+
 typedef __attribute__((aligned(16)))
 struct {
   unsigned long long w[3];
Index: gcc.dg/const-elim-2.c
===================================================================
--- gcc.dg/const-elim-2.c	(revision 266295)
+++ gcc.dg/const-elim-2.c	(working copy)
@@ -1,7 +1,7 @@ 
 /* The string constant in this test case should be emitted exactly once.  */
 /* { dg-do compile } */
 /* { dg-options "-O2" } */
-/* { dg-final { scan-assembler-times "hi there" 1 { xfail nvptx-*-* } } } */
+/* { dg-final { scan-assembler-times "hi there" 1 { xfail nvptx-*-* pdp11-*-* } } } */
 
 static inline int returns_23() { return 23; }
 
Index: gcc.dg/torture/pr36400.c
===================================================================
--- gcc.dg/torture/pr36400.c	(revision 266295)
+++ gcc.dg/torture/pr36400.c	(working copy)
@@ -14,4 +14,4 @@  void baz()
   barptr->some_string = "Everything OK";
 }
 
-/* { dg-final { scan-assembler "Everything OK" { xfail nvptx-*-* } } } */
+/* { dg-final { scan-assembler "Everything OK" { xfail nvptx-*-* pdp11-*-* } } } */
Index: gcc.dg/tree-ssa/loop-1.c
===================================================================
--- gcc.dg/tree-ssa/loop-1.c	(revision 266295)
+++ gcc.dg/tree-ssa/loop-1.c	(working copy)
@@ -46,7 +46,7 @@  int xxx(void)
 /* CRIS keeps the address in a register.  */
 /* m68k sometimes puts the address in a register, depending on CPU and PIC.  */
 
-/* { dg-final { scan-assembler-times "foo" 5 { xfail hppa*-*-* ia64*-*-* sh*-*-* cris-*-* crisv32-*-* fido-*-* m68k-*-* i?86-*-mingw* i?86-*-cygwin* x86_64-*-mingw* visium-*-* nvptx*-*-* } } } */
+/* { dg-final { scan-assembler-times "foo" 5 { xfail hppa*-*-* ia64*-*-* sh*-*-* cris-*-* crisv32-*-* fido-*-* m68k-*-* i?86-*-mingw* i?86-*-cygwin* x86_64-*-mingw* visium-*-* nvptx*-*-* pdp11*-*-* } } } */
 /* { dg-final { scan-assembler-times "foo,%r" 5 { target hppa*-*-* } } } */
 /* { dg-final { scan-assembler-times "= foo"  5 { target ia64*-*-* } } } */
 /* { dg-final { scan-assembler-times "call\[ \t\]*_foo" 5 { target i?86-*-mingw* i?86-*-cygwin* } } } */
@@ -53,6 +53,6 @@  int xxx(void)
 /* { dg-final { scan-assembler-times "call\[ \t\]*foo" 5 { target x86_64-*-mingw* } } } */
 /* { dg-final { scan-assembler-times "jsr|bsrf|blink\ttr?,r18"  5 { target sh*-*-* } } } */
 /* { dg-final { scan-assembler-times "Jsr \\\$r" 5 { target cris-*-* } } } */
-/* { dg-final { scan-assembler-times "\[jb\]sr" 5 { target fido-*-* m68k-*-* } } } */
+/* { dg-final { scan-assembler-times "\[jb\]sr" 5 { target fido-*-* m68k-*-* pdp11-*-* } } } */
 /* { dg-final { scan-assembler-times "bra *tr,r\[1-9\]*,r21" 5 { target visium-*-* } } } */
 /* { dg-final { scan-assembler-times "(?n)\[ \t\]call\[ \t\].*\[ \t\]foo," 5 { target nvptx*-*-* } } } */