]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Add -mpopcnt and -mabm variants of PR90693 tests
authorJakub Jelinek <jakub@redhat.com>
Wed, 11 Jun 2025 05:16:06 +0000 (07:16 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 11 Jun 2025 05:16:06 +0000 (07:16 +0200)
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  <jakub@redhat.com>

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.

gcc/testsuite/gcc.target/i386/pr90693-3.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/pr90693-4.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/pr90693-5.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/pr90693-6.c [new file with mode: 0644]

diff --git a/gcc/testsuite/gcc.target/i386/pr90693-3.c b/gcc/testsuite/gcc.target/i386/pr90693-3.c
new file mode 100644 (file)
index 0000000..601c83c
--- /dev/null
@@ -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 (file)
index 0000000..b149159
--- /dev/null
@@ -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 (file)
index 0000000..0a6a637
--- /dev/null
@@ -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 (file)
index 0000000..4040b52
--- /dev/null
@@ -0,0 +1,5 @@
+/* PR tree-optimization/90693 */
+/* { dg-do compile } */
+/* { dg-options "-O2 -mabm" } */
+
+#include "pr90693-2.c"