]> git.ipfire.org Git - thirdparty/gcc.git/commit
testsuite: Fix up gcc.dg/vec-perm-lower.c test
authorJakub Jelinek <jakub@redhat.com>
Sun, 27 Oct 2024 15:41:28 +0000 (16:41 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sun, 27 Oct 2024 15:41:28 +0000 (16:41 +0100)
commite2ce2a4661103bc40ff3cf5fdcbf92c1243dd637
treeab5e0b8ced185644388ed7baa9ad7b1b09b71f1c
parented8ca972f8857869d2bb4a416994bb896eb1c34e
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  <jakub@redhat.com>

* gcc.dg/vec-perm-lower.c: Add -Wno-psabi to dg-options.
gcc/testsuite/gcc.dg/vec-perm-lower.c