From: Jakub Jelinek Date: Wed, 11 Jun 2025 05:16:06 +0000 (+0200) Subject: testsuite: Add -mpopcnt and -mabm variants of PR90693 tests X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e477e7cd104af96c55379f69125db3f1c350c9ed;p=thirdparty%2Fgcc.git testsuite: Add -mpopcnt and -mabm variants of PR90693 tests My r16-1398 patch broke bootstrap on aarch64-linux and powerpc64le-linux at least. Fixed with r16-1408. The following patch just adds testcases with which the bug can be reproduced also on x86_64-linux where it hasn't been caught by the testsuite (while there are 2 tests with it, both where compiled with -mno-abm -mno-popcnt and so didn't trigger the right path). This patch just includes those tests in 4 further ones, two with -mpopcnt and two with -mabm flags. 2025-06-11 Jakub Jelinek PR tree-optimization/90693 * gcc.target/i386/pr90693-3.c: New test. * gcc.target/i386/pr90693-4.c: New test. * gcc.target/i386/pr90693-5.c: New test. * gcc.target/i386/pr90693-6.c: New test. --- diff --git a/gcc/testsuite/gcc.target/i386/pr90693-3.c b/gcc/testsuite/gcc.target/i386/pr90693-3.c new file mode 100644 index 00000000000..601c83c1d58 --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/pr90693-3.c @@ -0,0 +1,5 @@ +/* PR tree-optimization/90693 */ +/* { dg-do compile } */ +/* { dg-options "-O2 -mpopcnt" } */ + +#include "pr90693.c" diff --git a/gcc/testsuite/gcc.target/i386/pr90693-4.c b/gcc/testsuite/gcc.target/i386/pr90693-4.c new file mode 100644 index 00000000000..b149159d3b9 --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/pr90693-4.c @@ -0,0 +1,5 @@ +/* PR tree-optimization/90693 */ +/* { dg-do compile } */ +/* { dg-options "-O2 -mpopcnt" } */ + +#include "pr90693-2.c" diff --git a/gcc/testsuite/gcc.target/i386/pr90693-5.c b/gcc/testsuite/gcc.target/i386/pr90693-5.c new file mode 100644 index 00000000000..0a6a637a44b --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/pr90693-5.c @@ -0,0 +1,5 @@ +/* PR tree-optimization/90693 */ +/* { dg-do compile } */ +/* { dg-options "-O2 -mabm" } */ + +#include "pr90693.c" diff --git a/gcc/testsuite/gcc.target/i386/pr90693-6.c b/gcc/testsuite/gcc.target/i386/pr90693-6.c new file mode 100644 index 00000000000..4040b522650 --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/pr90693-6.c @@ -0,0 +1,5 @@ +/* PR tree-optimization/90693 */ +/* { dg-do compile } */ +/* { dg-options "-O2 -mabm" } */ + +#include "pr90693-2.c"