public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/105312] New: attribute__((optimize("-O3"))) stress_matrix_xy_identity compiling stress-ng for arm
@ 2022-04-19 17:34 raj.khem at gmail dot com
  2022-04-20  3:31 ` [Bug tree-optimization/105312] [12 Regression] ICE in gimple_expand_vec_cond_expr on arm-linux pinskia at gcc dot gnu.org
                   ` (16 more replies)
  0 siblings, 17 replies; 18+ messages in thread
From: raj.khem at gmail dot com @ 2022-04-19 17:34 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105312

            Bug ID: 105312
           Summary: attribute__((optimize("-O3")))
                    stress_matrix_xy_identity compiling stress-ng for arm
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: raj.khem at gmail dot com
  Target Milestone: ---

GCC 12 gets into an ICE when compiling this testcase (reduced from stress-ng)

typedef float stress_matrix_type_t;
typedef unsigned int size_t;
static void __attribute__((optimize("-O3"))) stress_matrix_xy_identity(
 const size_t n,
 stress_matrix_type_t a[restrict n][n],
 stress_matrix_type_t b[restrict n][n],
 stress_matrix_type_t r[restrict n][n])
{
 register size_t i;
 (void)a;
 (void)b;
 for (i = 0; i < n; i++) {
  register size_t j;
  for (j = 0; j < n; j++)
   r[i][j] = (i == j) ? 1.0 : 0.0;
   return;
 }
}

===============================

arm-yoe-linux-musleabi-gcc -mthumb -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a15
-fstack-protector-strong -D_FORTIFY_SOURCE=2 stress-matrix.i
during GIMPLE pass: isel
stress-matrix.i: In function 'stress_matrix_xy_identity':
stress-matrix.i:3:46: internal compiler error: in gimple_expand_vec_cond_expr,
at gimple-isel.cc:268
    3 | static void __attribute__((optimize("-O3"))) stress_matrix_xy_identity(
      |                                              ^~~~~~~~~~~~~~~~~~~~~~~~~
0x15d4b28 internal_error(char const*, ...)
        ???:0
0x6005fb fancy_abort(char const*, int, char const*)
        ???:0
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2023-04-25  6:21 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-19 17:34 [Bug middle-end/105312] New: attribute__((optimize("-O3"))) stress_matrix_xy_identity compiling stress-ng for arm raj.khem at gmail dot com
2022-04-20  3:31 ` [Bug tree-optimization/105312] [12 Regression] ICE in gimple_expand_vec_cond_expr on arm-linux pinskia at gcc dot gnu.org
2022-04-20  7:37 ` [Bug tree-optimization/105312] [12 Regression] ICE in gimple_expand_vec_cond_expr on arm-linux since r12-834-ga6eacbf1055520 marxin at gcc dot gnu.org
2022-04-20  7:44 ` rguenth at gcc dot gnu.org
2022-04-20  7:44 ` rguenth at gcc dot gnu.org
2022-04-20  8:14 ` rguenth at gcc dot gnu.org
2022-04-20  8:21 ` [Bug tree-optimization/105312] [11/12 " rguenth at gcc dot gnu.org
2022-04-20  8:44 ` clyon at gcc dot gnu.org
2022-04-20 11:27 ` cvs-commit at gcc dot gnu.org
2022-04-20 11:28 ` [Bug tree-optimization/105312] [11 " rguenth at gcc dot gnu.org
2022-04-20 15:28 ` raj.khem at gmail dot com
2022-04-21  7:51 ` rguenth at gcc dot gnu.org
2022-05-12 11:34 ` rguenth at gcc dot gnu.org
2022-05-19 14:03 ` cvs-commit at gcc dot gnu.org
2022-05-19 14:06 ` rguenth at gcc dot gnu.org
2022-05-20  3:50 ` sam at gentoo dot org
2022-10-20 19:55 ` pinskia at gcc dot gnu.org
2023-04-25  6:21 ` cvs-commit at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).