This test fails with error "AltiVec argument passed to unprototyped
function", but the code (in rs6000.c:invalid_arg_for_unprototyped_fn,
from 2005) actually tests for any vector type argument.  It also does
not fail on Darwin, not reflected here though.

Andreas, s390 has this same hook code, you may need to do the same?


Segher


2022-04-06  Segher Boessenkool  <seg...@kernel.crashing.org>

        PR target/105147
        * testsuite/gcc.dg/pr105140.c: Skip for powerpc*-*-*.
---
 gcc/testsuite/gcc.dg/pr105140.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/testsuite/gcc.dg/pr105140.c b/gcc/testsuite/gcc.dg/pr105140.c
index 14bff2f7f9c5..da34e7ad6566 100644
--- a/gcc/testsuite/gcc.dg/pr105140.c
+++ b/gcc/testsuite/gcc.dg/pr105140.c
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-Os -w -Wno-psabi" } */
+/* { dg-skip-if "PR105147" { powerpc*-*-* } } */
 
 typedef char __attribute__((__vector_size__ (16 * sizeof (char)))) U;
 typedef int __attribute__((__vector_size__ (16 * sizeof (int)))) V;
-- 
1.8.3.1

Reply via email to