]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[testsuite] [ia32] adjust testcases to cope with default-to-PIE
authorAlexandre Oliva <oliva@adacore.com>
Wed, 10 Dec 2025 23:56:15 +0000 (20:56 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Wed, 10 Dec 2025 23:58:00 +0000 (20:58 -0300)
A few testcases new in gcc-15 fail on i686-linux-gnu with PIE enabled
by default.  Add -fno-PIE so that they find the code they test for.

for  gcc/testsuite/ChangeLog

* gcc.dg/sibcall-12.c: Add -fno-PIE on ia32.
* gcc.target/i386/pr106060-2.c: Likewise.
* gcc.target/i386/pr106060-3.c: Likewise.
* gcc.target/i386/vect-shiftv4qi.c: Likewise.

gcc/testsuite/gcc.dg/sibcall-12.c
gcc/testsuite/gcc.target/i386/pr106060-2.c
gcc/testsuite/gcc.target/i386/pr106060-3.c
gcc/testsuite/gcc.target/i386/vect-shiftv4qi.c

index 5773c9c1c4a55b5cca153d381bff8d011ece0738..7e13c20878cd599ca9f75bf90900efd4954fabb8 100644 (file)
@@ -1,5 +1,6 @@
 // Test for sibcall optimization with struct aligned on stack.
 // { dg-options "-O2" }
+/* { dg-additional-options "-fno-PIE" { target ia32 } } */
 // { dg-final { scan-assembler "jmp" { target i?86-*-* x86_64-*-* } } }
 
 struct A { char a[17]; };
index 23933aba978cf993346c286a7ff80895153ee7f4..6fe4b71888f575978c7b72286766d7d0ecb7892a 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-O3 -march=x86-64-v3" } */
+/* { dg-additional-options "-fno-PIE" { target ia32 } } */
 #include <immintrin.h>
 
 __m256i
index 59c128cf923cff8bed50b8098a3420d9491e1ad4..ac53b0bd9f563a8a4ce21335012c45caf9143cdc 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-O3 -march=x86-64-v3" } */
+/* { dg-additional-options "-fno-PIE" { target ia32 } } */
 #include <immintrin.h>
 
 __m256i
index 9b52582d01f87feddc835cbb872af55a418e352f..a5b8ffebc2422299422549929ad4f6f1c7684a9f 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-O2 -msse2 -mno-avx2 -mno-avx512vl" } */
+/* { dg-additional-options "-fno-PIE" { target ia32 } } */
 
 #define N 4