public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/94666] New: S/390: ICE on vectorized popcount
@ 2020-04-20  7:18 krebbel at gcc dot gnu.org
  2020-04-20  7:20 ` [Bug target/94666] " krebbel at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: krebbel at gcc dot gnu.org @ 2020-04-20  7:18 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 94666
           Summary: S/390: ICE on vectorized popcount
           Product: gcc
           Version: 9.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: krebbel at gcc dot gnu.org
  Target Milestone: ---

Created attachment 48308
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48308&action=edit
Testcase

Compiling the attached testcase with:

cc1plus -O3 -march=z13 t.cc

ICEs:

t.cc: In function ‘void h()’:
t.cc:16:1: error: unrecognizable insn:
   16 | }
      | ^
(insn 94 93 95 7 (set (reg:V16QI 434)
        (unspec:V16QI [
                (subreg:V16QI (subreg:V2DI (reg:V16QI 432) 0) 0)
            ] UNSPEC_POPCNT)) "t.cc":6:30 -1
     (nil))
during RTL pass: vregs
t.cc:16:1: internal compiler error: in extract_insn, at recog.c:2294

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

* [Bug target/94666] S/390: ICE on vectorized popcount
  2020-04-20  7:18 [Bug target/94666] New: S/390: ICE on vectorized popcount krebbel at gcc dot gnu.org
@ 2020-04-20  7:20 ` krebbel at gcc dot gnu.org
  2020-04-20 13:08 ` krebbel at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: krebbel at gcc dot gnu.org @ 2020-04-20  7:20 UTC (permalink / raw)
  To: gcc-bugs

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

Andreas Krebbel <krebbel at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2020-04-20
           Assignee|unassigned at gcc dot gnu.org      |krebbel at gcc dot gnu.org

--- Comment #1 from Andreas Krebbel <krebbel at gcc dot gnu.org> ---
Created attachment 48309
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48309&action=edit
Patch

The expander has to simplify the generated subreg in case the incoming operand
is already a subreg.

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

* [Bug target/94666] S/390: ICE on vectorized popcount
  2020-04-20  7:18 [Bug target/94666] New: S/390: ICE on vectorized popcount krebbel at gcc dot gnu.org
  2020-04-20  7:20 ` [Bug target/94666] " krebbel at gcc dot gnu.org
@ 2020-04-20 13:08 ` krebbel at gcc dot gnu.org
  2020-04-20 18:10 ` krebbel at gcc dot gnu.org
  2020-05-04  9:03 ` krebbel at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: krebbel at gcc dot gnu.org @ 2020-04-20 13:08 UTC (permalink / raw)
  To: gcc-bugs

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

Andreas Krebbel <krebbel at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |doko at debian dot org

--- Comment #2 from Andreas Krebbel <krebbel at gcc dot gnu.org> ---
*** Bug 94670 has been marked as a duplicate of this bug. ***

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

* [Bug target/94666] S/390: ICE on vectorized popcount
  2020-04-20  7:18 [Bug target/94666] New: S/390: ICE on vectorized popcount krebbel at gcc dot gnu.org
  2020-04-20  7:20 ` [Bug target/94666] " krebbel at gcc dot gnu.org
  2020-04-20 13:08 ` krebbel at gcc dot gnu.org
@ 2020-04-20 18:10 ` krebbel at gcc dot gnu.org
  2020-05-04  9:03 ` krebbel at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: krebbel at gcc dot gnu.org @ 2020-04-20 18:10 UTC (permalink / raw)
  To: gcc-bugs

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

Andreas Krebbel <krebbel at gcc dot gnu.org> changed:

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

--- Comment #3 from Andreas Krebbel <krebbel at gcc dot gnu.org> ---
I've just committed this patch to mainline (and forgot to mention the PR in the
ChangeLog :(

gcc/ChangeLog:

2020-04-20  Andreas Krebbel  <krebbel@linux.ibm.com>

        * config/s390/vector.md ("popcountv8hi2_vx", "popcountv4si2_vx")
        ("popcountv2di2_vx"): Use simplify_gen_subreg.

gcc/testsuite/ChangeLog:

2020-04-20  Andreas Krebbel  <krebbel@linux.ibm.com>

        * g++.dg/pr94666.C: New test.

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

* [Bug target/94666] S/390: ICE on vectorized popcount
  2020-04-20  7:18 [Bug target/94666] New: S/390: ICE on vectorized popcount krebbel at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2020-04-20 18:10 ` krebbel at gcc dot gnu.org
@ 2020-05-04  9:03 ` krebbel at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: krebbel at gcc dot gnu.org @ 2020-05-04  9:03 UTC (permalink / raw)
  To: gcc-bugs

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

Andreas Krebbel <krebbel at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |CLOSED

--- Comment #4 from Andreas Krebbel <krebbel at gcc dot gnu.org> ---
Patch committed to GCC 8 and 9 branch.

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

end of thread, other threads:[~2020-05-04  9:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-20  7:18 [Bug target/94666] New: S/390: ICE on vectorized popcount krebbel at gcc dot gnu.org
2020-04-20  7:20 ` [Bug target/94666] " krebbel at gcc dot gnu.org
2020-04-20 13:08 ` krebbel at gcc dot gnu.org
2020-04-20 18:10 ` krebbel at gcc dot gnu.org
2020-05-04  9:03 ` krebbel 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).