]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Adjust testcase.
authorliuhongt <hongtao.liu@intel.com>
Mon, 24 Nov 2025 05:46:23 +0000 (21:46 -0800)
committerliuhongt <hongtao.liu@intel.com>
Mon, 24 Nov 2025 05:54:17 +0000 (21:54 -0800)
r16-3760-g9ff5cadac4579f generates more condition move for
-march=cascadelake, and causes new failures as below

FAIL: gcc.target/i386/pr116896.c scan-assembler-times \tjp\t 2
FAIL: g++.target/i386/pr116896-1.C  -std=gnu++20  scan-assembler-times \tjp\t 1
FAIL: g++.target/i386/pr116896-1.C  -std=gnu++23  scan-assembler-times \tjp\t 1
FAIL: g++.target/i386/pr116896-1.C  -std=gnu++26  scan-assembler-times \tjp\t 1

the code generated should be better than before, so just add
-mtune=generic to "fix" the testcases.

gcc/testsuite/ChangeLog:

PR target/122503
* g++.target/i386/pr116896-1.C: Add -mtune=generic to
dg-options.
* gcc.target/i386/pr116896.c: Ditto.

gcc/testsuite/g++.target/i386/pr116896-1.C
gcc/testsuite/gcc.target/i386/pr116896.c

index 3925ad8f603a659ab0e96c2483b56563881aade1..0732229b93aeb2d130f268898d3d3d33978378a9 100644 (file)
@@ -1,6 +1,6 @@
 // PR middle-end/116896
 // { dg-do compile { target c++20 } }
-// { dg-options "-O2 -masm=att -fno-stack-protector" }
+// { dg-options "-O2 -masm=att -fno-stack-protector -mtune=generic" }
 // { dg-final { scan-assembler-times "\tjp\t" 1 } }
 // { dg-final { scan-assembler-not "\tj\[^mp\]\[a-z\]*\t" } }
 // { dg-final { scan-assembler-times "\tsbb\[bl\]\t\\\$0, " 3 } }
index 9d1bd882770b9aeaf90e04c74a3db9ca12259deb..07b9d2d973e51fd6c3c47b1d43e5873f46d1d510 100644 (file)
@@ -1,6 +1,6 @@
 /* PR middle-end/116896 */
 /* { dg-do compile } */
-/* { dg-options "-O2 -masm=att -fno-stack-protector" } */
+/* { dg-options "-O2 -masm=att -fno-stack-protector -mtune=generic" } */
 /* { dg-final { scan-assembler-times "\tjp\t" 2 } } */
 /* { dg-final { scan-assembler-not "\tj\[^mp\]\[a-z\]*\t" } } */
 /* { dg-final { scan-assembler-times "\tsbb\[bl\]\t\\\$0, " 4 } } */