Hi!

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.

Tested on x86_64-linux -m32/-m64 before/after r16-1408, committed to trunk
as obvious.

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.

--- gcc/testsuite/gcc.target/i386/pr90693-3.c.jj        2025-06-11 
07:12:16.659685893 +0200
+++ gcc/testsuite/gcc.target/i386/pr90693-3.c   2025-06-11 07:12:10.225780752 
+0200
@@ -0,0 +1,5 @@
+/* PR tree-optimization/90693 */
+/* { dg-do compile } */
+/* { dg-options "-O2 -mpopcnt" } */
+
+#include "pr90693.c"
--- gcc/testsuite/gcc.target/i386/pr90693-4.c.jj        2025-06-11 
07:12:48.847211343 +0200
+++ gcc/testsuite/gcc.target/i386/pr90693-4.c   2025-06-11 07:12:55.988106062 
+0200
@@ -0,0 +1,5 @@
+/* PR tree-optimization/90693 */
+/* { dg-do compile } */
+/* { dg-options "-O2 -mpopcnt" } */
+
+#include "pr90693-2.c"
--- gcc/testsuite/gcc.target/i386/pr90693-5.c.jj        2025-06-11 
07:13:13.633845905 +0200
+++ gcc/testsuite/gcc.target/i386/pr90693-5.c   2025-06-11 07:13:29.005619277 
+0200
@@ -0,0 +1,5 @@
+/* PR tree-optimization/90693 */
+/* { dg-do compile } */
+/* { dg-options "-O2 -mabm" } */
+
+#include "pr90693.c"
--- gcc/testsuite/gcc.target/i386/pr90693-6.c.jj        2025-06-11 
07:13:16.461804210 +0200
+++ gcc/testsuite/gcc.target/i386/pr90693-6.c   2025-06-11 07:13:21.349732146 
+0200
@@ -0,0 +1,5 @@
+/* PR tree-optimization/90693 */
+/* { dg-do compile } */
+/* { dg-options "-O2 -mabm" } */
+
+#include "pr90693-2.c"

        Jakub

Reply via email to