diff mbox series

testsuite: i386: Fix g++.target/i386/pr116275-2.C on Solaris/x86

Message ID yddseuzibs3.fsf@CeBiTec.Uni-Bielefeld.DE
State New
Headers show
Series testsuite: i386: Fix g++.target/i386/pr116275-2.C on Solaris/x86 | expand

Commit Message

Rainer Orth Aug. 20, 2024, 1:06 p.m. UTC
The new g++.target/i386/pr116275-2.C test FAILs on 32-bit Solaris/x86:

FAIL: g++.target/i386/pr116275-2.C   scan-assembler vpslld

This happens because Solaris defaults to -mstackrealign, disabling -mstv.

Fixed by disabling the former and enabling the latter.

Tested on i386-pc-solaris2.11 and x86_64-pc-linux-gnu.

Ok for trunk?

	Rainer

Comments

Uros Bizjak Aug. 20, 2024, 1:10 p.m. UTC | #1
On Tue, Aug 20, 2024 at 3:06 PM Rainer Orth <ro@cebitec.uni-bielefeld.de> wrote:
>
> The new g++.target/i386/pr116275-2.C test FAILs on 32-bit Solaris/x86:
>
> FAIL: g++.target/i386/pr116275-2.C   scan-assembler vpslld
>
> This happens because Solaris defaults to -mstackrealign, disabling -mstv.
>
> Fixed by disabling the former and enabling the latter.
>
> Tested on i386-pc-solaris2.11 and x86_64-pc-linux-gnu.
>
> Ok for trunk?

OK.

Thanks,
Uros.

>         Rainer
>
> --
> -----------------------------------------------------------------------------
> Rainer Orth, Center for Biotechnology, Bielefeld University
>
>
> 2024-08-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
>
>         gcc/testsuite:
>         * g++.target/i386/pr116275-2.C (dg-options): Add -mstv
>         -mno-stackrealign.
>
diff mbox series

Patch

# HG changeset patch
# Parent  bdcd231534fa1f4ed66daec1d78cb1f07e7ed567
testsuite: i386: Fix g++.target/i386/pr116275-2.C on Solaris/x86

diff --git a/gcc/testsuite/g++.target/i386/pr116275-2.C b/gcc/testsuite/g++.target/i386/pr116275-2.C
--- a/gcc/testsuite/g++.target/i386/pr116275-2.C
+++ b/gcc/testsuite/g++.target/i386/pr116275-2.C
@@ -1,5 +1,5 @@ 
 /* { dg-do compile { target ia32 } } */
-/* { dg-options "-O2 -mavx -mno-avx512vl -std=c++11" } */
+/* { dg-options "-O2 -mavx -mno-avx512vl -mstv -mno-stackrealign -std=c++11" } */
 
 struct SymbolDesc push_back(SymbolDesc);
 struct SymbolDesc {