public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/102897] New: [12 Regression] simplify_permutation ICEs on assert
@ 2021-10-22 11:22 tnfchris at gcc dot gnu.org
  2021-10-22 11:29 ` [Bug tree-optimization/102897] [12 Regression] simplify_permutation ICEs on assert since r12-1103-g4a9f2306cb39a3cf marxin at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: tnfchris at gcc dot gnu.org @ 2021-10-22 11:22 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 102897
           Summary: [12 Regression] simplify_permutation ICEs on assert
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: tnfchris at gcc dot gnu.org
  Target Milestone: ---

The following testcase

typedef __attribute__((vector_size(8))) signed char int8x8_t;
typedef __attribute__((vector_size(8))) unsigned char uint8x8_t;

int8x8_t fn1(int8x8_t val20, char tmp) {
  uint8x8_t __trans_tmp_3;
  __trans_tmp_3 = (uint8x8_t){tmp};
  int8x8_t __a = (int8x8_t)__trans_tmp_3;
  return __builtin_shuffle(__a, val20, (uint8x8_t){});
}

ICEs at -O1 and higher with

during GIMPLE pass: forwprop
<source>: In function 'fn1':
<source>:12:1: internal compiler error: in simplify_permutation, at
tree-ssa-forwprop.c:2271
   12 | }
      | ^
0x1000e00 simplify_permutation
        src/gcc/gcc/tree-ssa-forwprop.c:2271
0x1007ae8 execute
        src/gcc/gcc/tree-ssa-forwprop.c:3397

That line contains an assert with the comment

          tree op2_type = TREE_TYPE (op2);
          /* Should have folded this before.  */
          gcc_assert (op2_type != tgt_type);

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

end of thread, other threads:[~2021-10-27  8:27 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-22 11:22 [Bug tree-optimization/102897] New: [12 Regression] simplify_permutation ICEs on assert tnfchris at gcc dot gnu.org
2021-10-22 11:29 ` [Bug tree-optimization/102897] [12 Regression] simplify_permutation ICEs on assert since r12-1103-g4a9f2306cb39a3cf marxin at gcc dot gnu.org
2021-10-22 18:55 ` pinskia at gcc dot gnu.org
2021-10-25  2:20 ` linkw at gcc dot gnu.org
2021-10-25  6:43 ` rguenth at gcc dot gnu.org
2021-10-25  9:03 ` linkw at gcc dot gnu.org
2021-10-26 10:04 ` cvs-commit at gcc dot gnu.org
2021-10-27  7:44 ` cvs-commit at gcc dot gnu.org
2021-10-27  8:27 ` linkw 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).