https://gcc.gnu.org/g:e2ce2a4661103bc40ff3cf5fdcbf92c1243dd637

commit r15-4703-ge2ce2a4661103bc40ff3cf5fdcbf92c1243dd637
Author: Jakub Jelinek <ja...@redhat.com>
Date:   Sun Oct 27 16:41:28 2024 +0100

    testsuite: Fix up gcc.dg/vec-perm-lower.c test
    
    On Tue, Oct 15, 2024 at 12:45:35PM +0000, Tamar Christina wrote:
    > I'll write a gimple one and commit with this then.
    
    The new test FAILs on i686-linux, with the usual
    
    FAIL: gcc.dg/vec-perm-lower.c (test for excess errors)
    Excess errors:
    .../gcc/testsuite/gcc.dg/vec-perm-lower.c:9:1: warning: SSE vector return 
without SSE enabled changes the ABI [-Wpsabi]
    .../gcc/testsuite/gcc.dg/vec-perm-lower.c:8:1: warning: MMX vector argument 
without MMX enabled changes the ABI [-Wpsabi]
    
    The following patch fixes that.
    Tested on x86_64-linux with
    make check-gcc 
RUNTESTFLAGS='--target_board=unix/\{-m32,-m32/-mno-sse/-mno-mmx,-m64\} 
dg.exp=vec-perm-lower.c'
    which previously FAILed, now PASSes, ok for trunk?
    
    2024-10-27  Jakub Jelinek  <ja...@redhat.com>
    
            * gcc.dg/vec-perm-lower.c: Add -Wno-psabi to dg-options.

Diff:
---
 gcc/testsuite/gcc.dg/vec-perm-lower.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.dg/vec-perm-lower.c 
b/gcc/testsuite/gcc.dg/vec-perm-lower.c
index da738fbeed80..4b5dda58f006 100644
--- a/gcc/testsuite/gcc.dg/vec-perm-lower.c
+++ b/gcc/testsuite/gcc.dg/vec-perm-lower.c
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-fgimple -O2" } */
+/* { dg-options "-fgimple -O2 -Wno-psabi" } */
 
 typedef char v8qi __attribute__ ((vector_size (8)));
 typedef char v16qi __attribute__ ((vector_size (16)));

Reply via email to