Hi!

I've noticed these tests fail on powerpc64*-linux (need -w, otherwise
the backend warns about ABI stuff (should have been probably -Wpsabi
note, but it isn't, and various tests in dg-torture are already using -w),
and one needa avx_runtime.  Fixed thusly, committed as obvious to trunk.

2016-02-27  Jakub Jelinek  <ja...@redhat.com>

        PR target/69613
        PR rtl-optimization/69886
        * gcc.dg/torture/pr69886.c: Add -w -Wno-psabi to dg-options.
        * gcc.dg/torture/pr69613.c: Likewise.  Guard -mavx with avx_runtime
        target.

--- gcc/testsuite/gcc.dg/torture/pr69886.c.jj   2016-02-24 14:52:14.000000000 
+0100
+++ gcc/testsuite/gcc.dg/torture/pr69886.c      2016-02-27 14:25:52.280172085 
+0100
@@ -1,6 +1,6 @@
 /* PR rtl-optimization/69886.  */
 /* { dg-do compile } */
-/* { dg-options "--param=gcse-unrestricted-cost=0" } */
+/* { dg-options "--param=gcse-unrestricted-cost=0 -w -Wno-psabi" } */
 /* { dg-additional-options "-mavx" { target { i?86-*-* x86_64-*-* } } } */
 
 typedef unsigned v32su __attribute__ ((vector_size (32)));
--- gcc/testsuite/gcc.dg/torture/pr69613.c.jj   2016-02-26 20:30:20.000000000 
+0100
+++ gcc/testsuite/gcc.dg/torture/pr69613.c      2016-02-27 14:25:05.371834694 
+0100
@@ -1,6 +1,7 @@
 /* PR target/69613.  */
 /* { dg-do run { target int128 } } */
-/* { dg-additional-options "-mavx" { target { i?86-*-* x86_64-*-* } } } */
+/* { dg-options "-w -Wno-psabi" } */
+/* { dg-additional-options "-mavx" { target avx_runtime } } */
 
 typedef unsigned short u16;
 typedef unsigned short v32u16 __attribute__ ((vector_size (32)));

        Jakub

Reply via email to