Hi!

ICE on this testcase started with r16-5169 and got fixed with r16-6937.

Tested on x86_64-linux -m32/-m64, committed to trunk as obvious.

2026-01-21  Jakub Jelinek  <[email protected]>

        PR middle-end/123744
        * gcc.target/i386/avx512bw-pr123744.c: New test.

--- gcc/testsuite/gcc.target/i386/avx512bw-pr123744.c.jj        2026-01-21 
15:32:42.887785594 +0100
+++ gcc/testsuite/gcc.target/i386/avx512bw-pr123744.c   2026-01-21 
15:32:31.768974089 +0100
@@ -0,0 +1,19 @@
+/* PR middle-end/123744 */
+/* { dg-do compile } */
+/* { dg-options "-O3 -mavx512bw" } */
+
+int c, d, e;
+long long a;
+signed char *b;
+short f;
+
+void
+foo (short i[][7][7], char j[][7][7])
+{
+  for (int h = 0; h < 128; h++)
+    {
+      c = e ? b[1] : 0;
+      if (a)
+       d = (f ? j[0][0][1] : i[4][4][1]) / 12;
+    }
+}

        Jakub

Reply via email to