https://gcc.gnu.org/g:e477e7cd104af96c55379f69125db3f1c350c9ed

commit r16-1410-ge477e7cd104af96c55379f69125db3f1c350c9ed
Author: Jakub Jelinek <ja...@redhat.com>
Date:   Wed Jun 11 07:16:06 2025 +0200

    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  <ja...@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.

Diff:
---
 gcc/testsuite/gcc.target/i386/pr90693-3.c | 5 +++++
 gcc/testsuite/gcc.target/i386/pr90693-4.c | 5 +++++
 gcc/testsuite/gcc.target/i386/pr90693-5.c | 5 +++++
 gcc/testsuite/gcc.target/i386/pr90693-6.c | 5 +++++
 4 files changed, 20 insertions(+)

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 000000000000..601c83c1d586
--- /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 000000000000..b149159d3b97
--- /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 000000000000..0a6a637a44b6
--- /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 000000000000..4040b5226501
--- /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"

Reply via email to