From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2140) id 389303858D3C; Tue, 23 Apr 2024 02:39:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 389303858D3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1713839947; bh=DfO44hfeMVHAn/wfgE1lGsgDUwfsKB6i6dFvMPoQdXs=; h=From:To:Subject:Date:From; b=KXYKo+ELhKNE+omobqDu2JdmHzRHjFJC1kEigi4yiM7FQ7zCm96pUHOKCOmJF9lqw E3JEXv1U9voiu2g0d0lKzL73ivXK1b8V7TFNpNhH/OqBJG7wWmjFRFbmr890I/NxVL Um9oRdh/KKT5wGMTCpAUpNct5EYKJ7JF9Epq0cCA= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Alexandre Oliva To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/aoliva/heads/testme)] add explicit ABI and align options to pr88233.c X-Act-Checkin: gcc X-Git-Author: Alexandre Oliva X-Git-Refname: refs/users/aoliva/heads/testme X-Git-Oldrev: 9aad4681cb81920420e3cef32d02acf4bec891d6 X-Git-Newrev: 68e3d62f56eea3a5fa798ec514bd89ddc6668c4a Message-Id: <20240423023907.389303858D3C@sourceware.org> Date: Tue, 23 Apr 2024 02:39:07 +0000 (GMT) List-Id: https://gcc.gnu.org/g:68e3d62f56eea3a5fa798ec514bd89ddc6668c4a commit 68e3d62f56eea3a5fa798ec514bd89ddc6668c4a Author: Alexandre Oliva Date: Sun Apr 21 17:24:30 2024 -0300 add explicit ABI and align options to pr88233.c We've observed failures of this test on powerpc configurations that default to different calling conventions and alignment requirements. Both settings are needed for the original expectations to be met. The test was later modified to have different expectations for big and little endian code generation. This patch restores the original codegen expectations, that, with the explicit options, don't vary any more. for gcc/testsuite/ChangeLog * gcc.target/powerpc/pr88233.c: Make some alignment strictness and calling conventions assumptions explicit. Restore uniform codegen expectations Diff: --- gcc/testsuite/gcc.target/powerpc/pr88233.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/gcc/testsuite/gcc.target/powerpc/pr88233.c b/gcc/testsuite/gcc.target/powerpc/pr88233.c index 27c73717a3f..7ea459cb802 100644 --- a/gcc/testsuite/gcc.target/powerpc/pr88233.c +++ b/gcc/testsuite/gcc.target/powerpc/pr88233.c @@ -1,5 +1,5 @@ /* { dg-require-effective-target lp64 } */ -/* { dg-options "-O2 -mdejagnu-cpu=power8" } */ +/* { dg-options "-O2 -mdejagnu-cpu=power8 -mno-strict-align -fno-reg-struct-return" } */ typedef struct { double a[2]; } A; A @@ -9,6 +9,5 @@ foo (const A *a) } /* { dg-final { scan-assembler-not {\mmtvsr} } } */ -/* { dg-final { scan-assembler-times {\mlxvd2x\M} 1 { target { be } } } } */ -/* { dg-final { scan-assembler-times {\mstxvd2x\M} 1 { target { be } } } } */ -/* { dg-final { scan-assembler-times {\mlfd\M} 2 { target { le } } } } */ +/* { dg-final { scan-assembler-times {\mlxvd2x\M} 1 } } */ +/* { dg-final { scan-assembler-times {\mstxvd2x\M} 1 } } */