public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/107326] New: [13 Regression] ICE: verify_gimple failed (error: type mismatch in binary expression)
@ 2022-10-20  3:19 asolokha at gmx dot com
  2022-10-20  9:24 ` [Bug tree-optimization/107326] " rguenth at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: asolokha at gmx dot com @ 2022-10-20  3:19 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 107326
           Summary: [13 Regression] ICE: verify_gimple failed (error: type
                    mismatch in binary expression)
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
  Target Milestone: ---
            Target: aarch64-linux-gnu

gcc 13.0.0 20221016 snapshot (g:6366e3e8847af98d4728d55951534769d034d02a) ICEs
when compiling the following testcase w/ -O2 -fallow-store-data-races
-fvect-cost-model=dynamic:

struct Gsymtab {
  unsigned int : 8;
  unsigned int visited_somewhere : 1;
};

extern struct Gsymtab glob_symtab[];

int
visit_children (int i)
{
  int numvisited = 0;

  while (i < 1)
    {
      if (glob_symtab[i].visited_somewhere)
        ++numvisited;

      ++i;
    }

  return numvisited;
}

% aarch64-linux-gnu-gcc-13 -O2 -fallow-store-data-races
-fvect-cost-model=dynamic -c cjjq0il5.ccjjq0il5.c: In function
'visit_children':
cjjq0il5.c:9:1: error: type mismatch in binary expression
    9 | visit_children (int i)
      | ^~~~~~~~~~~~~~
vector(4) short unsigned int

vector(4) int

vector(4) int

vect_patt_8.16_64 = vect_patt_3.15_62 & { 256, 256, 256, 256 };
cjjq0il5.c:9:1: error: type mismatch in binary expression
vector(4) int

vector(4) int

vector(4) short unsigned int

vect__23.18_66 = vect_numvisited_12.10_51 + vect_patt_24.17_65;
during GIMPLE pass: vect
cjjq0il5.c:9:1: internal compiler error: verify_gimple failed
0xf81d0d verify_gimple_in_cfg(function*, bool)
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-13.0.0_p20221016/work/gcc-13-20221016/gcc/tree-cfg.cc:5649
0xe3def7 execute_function_todo
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-13.0.0_p20221016/work/gcc-13-20221016/gcc/passes.cc:2091
0xe3e42e execute_todo
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-13.0.0_p20221016/work/gcc-13-20221016/gcc/passes.cc:2145

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

* [Bug tree-optimization/107326] [13 Regression] ICE: verify_gimple failed (error: type mismatch in binary expression)
  2022-10-20  3:19 [Bug tree-optimization/107326] New: [13 Regression] ICE: verify_gimple failed (error: type mismatch in binary expression) asolokha at gmx dot com
@ 2022-10-20  9:24 ` rguenth at gcc dot gnu.org
  2022-10-20  9:25 ` [Bug tree-optimization/107326] [13 Regression] ICE: verify_gimple failed (error: type mismatch in binary expression) since r13-3219-g25413fdb2ac249 marxin at gcc dot gnu.org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-10-20  9:24 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |13.0

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

* [Bug tree-optimization/107326] [13 Regression] ICE: verify_gimple failed (error: type mismatch in binary expression) since r13-3219-g25413fdb2ac249
  2022-10-20  3:19 [Bug tree-optimization/107326] New: [13 Regression] ICE: verify_gimple failed (error: type mismatch in binary expression) asolokha at gmx dot com
  2022-10-20  9:24 ` [Bug tree-optimization/107326] " rguenth at gcc dot gnu.org
@ 2022-10-20  9:25 ` marxin at gcc dot gnu.org
  2022-10-20  9:25 ` marxin at gcc dot gnu.org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-10-20  9:25 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Target Milestone|13.0                        |---
                 CC|                            |avieira at gcc dot gnu.org,
                   |                            |marxin at gcc dot gnu.org
   Last reconfirmed|                            |2022-10-20
            Summary|[13 Regression] ICE:        |[13 Regression] ICE:
                   |verify_gimple failed        |verify_gimple failed
                   |(error: type mismatch in    |(error: type mismatch in
                   |binary expression)          |binary expression) since
                   |                            |r13-3219-g25413fdb2ac249
     Ever confirmed|0                           |1

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Started with r13-3219-g25413fdb2ac249.

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

* [Bug tree-optimization/107326] [13 Regression] ICE: verify_gimple failed (error: type mismatch in binary expression) since r13-3219-g25413fdb2ac249
  2022-10-20  3:19 [Bug tree-optimization/107326] New: [13 Regression] ICE: verify_gimple failed (error: type mismatch in binary expression) asolokha at gmx dot com
  2022-10-20  9:24 ` [Bug tree-optimization/107326] " rguenth at gcc dot gnu.org
  2022-10-20  9:25 ` [Bug tree-optimization/107326] [13 Regression] ICE: verify_gimple failed (error: type mismatch in binary expression) since r13-3219-g25413fdb2ac249 marxin at gcc dot gnu.org
@ 2022-10-20  9:25 ` marxin at gcc dot gnu.org
  2022-10-20 10:19 ` avieira at gcc dot gnu.org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-10-20  9:25 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |13.0

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

* [Bug tree-optimization/107326] [13 Regression] ICE: verify_gimple failed (error: type mismatch in binary expression) since r13-3219-g25413fdb2ac249
  2022-10-20  3:19 [Bug tree-optimization/107326] New: [13 Regression] ICE: verify_gimple failed (error: type mismatch in binary expression) asolokha at gmx dot com
                   ` (2 preceding siblings ...)
  2022-10-20  9:25 ` marxin at gcc dot gnu.org
@ 2022-10-20 10:19 ` avieira at gcc dot gnu.org
  2022-10-20 14:55 ` cvs-commit at gcc dot gnu.org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: avieira at gcc dot gnu.org @ 2022-10-20 10:19 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from avieira at gcc dot gnu.org ---
Hi Arseny,

Apologies for this, I thought I had caught this with testing, but seems I had
not. I am testing a fix right now.

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

* [Bug tree-optimization/107326] [13 Regression] ICE: verify_gimple failed (error: type mismatch in binary expression) since r13-3219-g25413fdb2ac249
  2022-10-20  3:19 [Bug tree-optimization/107326] New: [13 Regression] ICE: verify_gimple failed (error: type mismatch in binary expression) asolokha at gmx dot com
                   ` (3 preceding siblings ...)
  2022-10-20 10:19 ` avieira at gcc dot gnu.org
@ 2022-10-20 14:55 ` cvs-commit at gcc dot gnu.org
  2022-11-13 10:11 ` ramana at gcc dot gnu.org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-10-20 14:55 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Andre Simoes Dias Vieira
<avieira@gcc.gnu.org>:

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

commit r13-3413-ge10ca9544632dbff4759b4b92886cd96d0b9bdfe
Author: Andre Vieira <andre.simoesdiasvieira@arm.com>
Date:   Thu Oct 20 15:54:39 2022 +0100

    vect: Fix vectype when widening container type in bitfield pattern
[PR107326]

    The 'vect_recog_bitfield_ref_pattern' was not correctly adapting the
vectype
    when widening the container.

    gcc/ChangeLog:

            PR tree-optimization/107326
            * tree-vect-patterns.cc (vect_recog_bitfield_ref_pattern): Change
            vectype when widening container.

    gcc/testsuite/ChangeLog:

            * gcc.dg/vect/pr107326.c: New test.
            * gcc.dg/vect/vect-bitfield-read-7.c: New test.

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

* [Bug tree-optimization/107326] [13 Regression] ICE: verify_gimple failed (error: type mismatch in binary expression) since r13-3219-g25413fdb2ac249
  2022-10-20  3:19 [Bug tree-optimization/107326] New: [13 Regression] ICE: verify_gimple failed (error: type mismatch in binary expression) asolokha at gmx dot com
                   ` (4 preceding siblings ...)
  2022-10-20 14:55 ` cvs-commit at gcc dot gnu.org
@ 2022-11-13 10:11 ` ramana at gcc dot gnu.org
  2022-11-14 16:56 ` avieira at gcc dot gnu.org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: ramana at gcc dot gnu.org @ 2022-11-13 10:11 UTC (permalink / raw)
  To: gcc-bugs

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

Ramana Radhakrishnan <ramana at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ramana at gcc dot gnu.org

--- Comment #4 from Ramana Radhakrishnan <ramana at gcc dot gnu.org> ---
Fixed ?

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

* [Bug tree-optimization/107326] [13 Regression] ICE: verify_gimple failed (error: type mismatch in binary expression) since r13-3219-g25413fdb2ac249
  2022-10-20  3:19 [Bug tree-optimization/107326] New: [13 Regression] ICE: verify_gimple failed (error: type mismatch in binary expression) asolokha at gmx dot com
                   ` (5 preceding siblings ...)
  2022-11-13 10:11 ` ramana at gcc dot gnu.org
@ 2022-11-14 16:56 ` avieira at gcc dot gnu.org
  2022-11-15  0:32 ` asolokha at gmx dot com
  2022-11-15  9:58 ` avieira at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: avieira at gcc dot gnu.org @ 2022-11-14 16:56 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from avieira at gcc dot gnu.org ---
It looks that way on my end, but I'll let Arseny confirm.

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

* [Bug tree-optimization/107326] [13 Regression] ICE: verify_gimple failed (error: type mismatch in binary expression) since r13-3219-g25413fdb2ac249
  2022-10-20  3:19 [Bug tree-optimization/107326] New: [13 Regression] ICE: verify_gimple failed (error: type mismatch in binary expression) asolokha at gmx dot com
                   ` (6 preceding siblings ...)
  2022-11-14 16:56 ` avieira at gcc dot gnu.org
@ 2022-11-15  0:32 ` asolokha at gmx dot com
  2022-11-15  9:58 ` avieira at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: asolokha at gmx dot com @ 2022-11-15  0:32 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Arseny Solokha <asolokha at gmx dot com> ---
Yes, this one is fixed. Thanks.

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

* [Bug tree-optimization/107326] [13 Regression] ICE: verify_gimple failed (error: type mismatch in binary expression) since r13-3219-g25413fdb2ac249
  2022-10-20  3:19 [Bug tree-optimization/107326] New: [13 Regression] ICE: verify_gimple failed (error: type mismatch in binary expression) asolokha at gmx dot com
                   ` (7 preceding siblings ...)
  2022-11-15  0:32 ` asolokha at gmx dot com
@ 2022-11-15  9:58 ` avieira at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: avieira at gcc dot gnu.org @ 2022-11-15  9:58 UTC (permalink / raw)
  To: gcc-bugs

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

avieira at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #7 from avieira at gcc dot gnu.org ---
Closing this then.

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

end of thread, other threads:[~2022-11-15  9:58 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-20  3:19 [Bug tree-optimization/107326] New: [13 Regression] ICE: verify_gimple failed (error: type mismatch in binary expression) asolokha at gmx dot com
2022-10-20  9:24 ` [Bug tree-optimization/107326] " rguenth at gcc dot gnu.org
2022-10-20  9:25 ` [Bug tree-optimization/107326] [13 Regression] ICE: verify_gimple failed (error: type mismatch in binary expression) since r13-3219-g25413fdb2ac249 marxin at gcc dot gnu.org
2022-10-20  9:25 ` marxin at gcc dot gnu.org
2022-10-20 10:19 ` avieira at gcc dot gnu.org
2022-10-20 14:55 ` cvs-commit at gcc dot gnu.org
2022-11-13 10:11 ` ramana at gcc dot gnu.org
2022-11-14 16:56 ` avieira at gcc dot gnu.org
2022-11-15  0:32 ` asolokha at gmx dot com
2022-11-15  9:58 ` avieira 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).