]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[testsuite] [i386] work around fails with --enable-frame-pointer
authorAlexandre Oliva <oliva@adacore.com>
Thu, 18 Apr 2024 11:01:40 +0000 (08:01 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Thu, 18 Apr 2024 11:14:10 +0000 (08:14 -0300)
A few x86 tests get unexpected insn counts if the toolchain is
configured with --enable-frame-pointer.  Add explicit
-fomit-frame-pointer so that the expected insn sequences are output.

for  gcc/testsuite/ChangeLog

* gcc.target/i386/pr107261.c: Add -fomit-frame-pointer.
* gcc.target/i386/pr69482-1.c: Likewise.
* gcc.target/i386/pr69482-2.c: Likewise.

gcc/testsuite/gcc.target/i386/pr107261.c
gcc/testsuite/gcc.target/i386/pr69482-1.c
gcc/testsuite/gcc.target/i386/pr69482-2.c

index eb1d232fbfc4bdcfbf5824916d14c792290befb5..b422af9cbf9a2406f1ff02fd0126e7575453fb34 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O2 -msse2" } */
+/* { dg-options "-O2 -msse2 -fomit-frame-pointer" } */
 
 typedef __bf16 v4bf __attribute__ ((vector_size (8)));
 typedef __bf16 v2bf __attribute__ ((vector_size (4)));
index 99bb6ad5a377b831e5c0071f14c3a1e8f7d16a95..7ef0e71b17c8e01d27a82127c4a314167dabef5c 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O3 -fno-stack-protector" } */
+/* { dg-options "-O3 -fno-stack-protector -fomit-frame-pointer" } */
 
 static inline void memset_s(void* s, int n) {
   volatile unsigned char * p = s;
index 58e89a79333643dee66b8e50e0268a14cf3ea44f..6aabe4fb39399e1f0cf593d4987cf4d7c3d2e48d 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O2" } */
+/* { dg-options "-O2 -fomit-frame-pointer" } */
 
 void bar ()
 {