public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/94942] New: [10/11 Regression] ICE: in extract_constrain_insn, at recog.c:2195 (insn does not satisfy its constraints) with -O -flive-range-shrinkage -ftree-vrp -mavx512vl
@ 2020-05-04 10:54 zsojka at seznam dot cz
  2020-05-04 11:26 ` [Bug target/94942] " jakub at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: zsojka at seznam dot cz @ 2020-05-04 10:54 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 94942
           Summary: [10/11 Regression] ICE: in extract_constrain_insn, at
                    recog.c:2195 (insn does not satisfy its constraints)
                    with -O -flive-range-shrinkage -ftree-vrp -mavx512vl
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zsojka at seznam dot cz
  Target Milestone: ---
              Host: x86_64-pc-linux-gnu

Created attachment 48437
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48437&action=edit
reduced testcase

Compiler output:
$ x86_64-pc-linux-gnu-gcc -O -flive-range-shrinkage -ftree-vrp -mavx512vl
testcase.c
testcase.c: In function 'foo':
testcase.c:16:31: warning: division by zero [-Wdiv-by-zero]
   16 |   W v = (k | k >> m + (W){4}) % 0;
      |                               ^
testcase.c:20:1: error: insn does not satisfy its constraints:
   20 | }
      | ^
(insn 365 309 359 2 (set (reg:V8HI 20 xmm0 [511])
        (vec_duplicate:V8HI (reg:HI 52 xmm16))) "testcase.c":15:5 5054
{*vec_dupv8hi}
     (expr_list:REG_DEAD (reg:HI 52 xmm16)
        (nil)))
during RTL pass: cprop_hardreg
testcase.c:20:1: internal compiler error: in extract_constrain_insn, at
recog.c:2195
0x6d467c _fatal_insn(char const*, rtx_def const*, char const*, int, char
const*)
        /repo/gcc-trunk/gcc/rtl-error.c:108
0x6d4709 _fatal_insn_not_found(rtx_def const*, char const*, int, char const*)
        /repo/gcc-trunk/gcc/rtl-error.c:118
0x6c3d6c extract_constrain_insn(rtx_insn*)
        /repo/gcc-trunk/gcc/recog.c:2195
0xf4aadc copyprop_hardreg_forward_1
        /repo/gcc-trunk/gcc/regcprop.c:802
0xf4bd4e execute
        /repo/gcc-trunk/gcc/regcprop.c:1367
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

$ x86_64-pc-linux-gnu-gcc -v
Using built-in specs.
COLLECT_GCC=/repo/gcc-trunk/binary-latest-amd64/bin/x86_64-pc-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-r11-36-20200504110332-g6b5c7ee0df6-checking-yes-rtl-df-extra-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/11.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++
--enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra
--with-cloog --with-ppl --with-isl --build=x86_64-pc-linux-gnu
--host=x86_64-pc-linux-gnu --target=x86_64-pc-linux-gnu
--with-ld=/usr/bin/x86_64-pc-linux-gnu-ld
--with-as=/usr/bin/x86_64-pc-linux-gnu-as --disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-r11-36-20200504110332-g6b5c7ee0df6-checking-yes-rtl-df-extra-amd64
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.0.0 20200504 (experimental) (GCC)

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

* [Bug target/94942] [10/11 Regression] ICE: in extract_constrain_insn, at recog.c:2195 (insn does not satisfy its constraints) with -O -flive-range-shrinkage -ftree-vrp -mavx512vl
  2020-05-04 10:54 [Bug target/94942] New: [10/11 Regression] ICE: in extract_constrain_insn, at recog.c:2195 (insn does not satisfy its constraints) with -O -flive-range-shrinkage -ftree-vrp -mavx512vl zsojka at seznam dot cz
@ 2020-05-04 11:26 ` jakub at gcc dot gnu.org
  2020-05-04 11:56 ` jakub at gcc dot gnu.org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2020-05-04 11:26 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
                 CC|                            |jakub at gcc dot gnu.org
   Last reconfirmed|                            |2020-05-04
     Ever confirmed|0                           |1
           Assignee|unassigned at gcc dot gnu.org      |jakub at gcc dot gnu.org
   Target Milestone|---                         |10.0

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Started with r10-2846-gbc4aa158c9490e76573bee3eec90f893b7d0b1ae
Looking.

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

* [Bug target/94942] [10/11 Regression] ICE: in extract_constrain_insn, at recog.c:2195 (insn does not satisfy its constraints) with -O -flive-range-shrinkage -ftree-vrp -mavx512vl
  2020-05-04 10:54 [Bug target/94942] New: [10/11 Regression] ICE: in extract_constrain_insn, at recog.c:2195 (insn does not satisfy its constraints) with -O -flive-range-shrinkage -ftree-vrp -mavx512vl zsojka at seznam dot cz
  2020-05-04 11:26 ` [Bug target/94942] " jakub at gcc dot gnu.org
@ 2020-05-04 11:56 ` jakub at gcc dot gnu.org
  2020-05-05  9:35 ` cvs-commit at gcc dot gnu.org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2020-05-04 11:56 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 48441
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48441&action=edit
gcc11-pr94942.patch

Untested fix.

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

* [Bug target/94942] [10/11 Regression] ICE: in extract_constrain_insn, at recog.c:2195 (insn does not satisfy its constraints) with -O -flive-range-shrinkage -ftree-vrp -mavx512vl
  2020-05-04 10:54 [Bug target/94942] New: [10/11 Regression] ICE: in extract_constrain_insn, at recog.c:2195 (insn does not satisfy its constraints) with -O -flive-range-shrinkage -ftree-vrp -mavx512vl zsojka at seznam dot cz
  2020-05-04 11:26 ` [Bug target/94942] " jakub at gcc dot gnu.org
  2020-05-04 11:56 ` jakub at gcc dot gnu.org
@ 2020-05-05  9:35 ` cvs-commit at gcc dot gnu.org
  2020-05-05  9:38 ` [Bug target/94942] [10 " jakub at gcc dot gnu.org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-05-05  9:35 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <jakub@gcc.gnu.org>:

https://gcc.gnu.org/g:7f916201ac390a5e1c88562bb91b1b4ab2852f22

commit r11-64-g7f916201ac390a5e1c88562bb91b1b4ab2852f22
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Tue May 5 11:33:47 2020 +0200

    x86: Fix *vec_dupv4hi constraints [PR94942]

    This insn and split splits into HI->V?HImode broadcast for avx2 and later,
    but either the operands need to be %xmm0-%xmm15 (i.e. VEX encoded insn), or
    the insn needs both AVX512BW and AVX512VL.
    Now, Yv constraint is v for AVX512VL and x otherwise, so for -mavx512vl
-mno-avx512bw
    we ICE if we end up with a %xmm16+ register from RA.
    Yw constraint is v for AVX512VL and AVX512BW and nothing otherwise, so
    in this pattern we actually need xYw.

    2020-05-05  Jakub Jelinek  <jakub@redhat.com>

            PR target/94942
            * config/i386/mmx.md (*vec_dupv4hi): Use xYw constraints instead of
Yv.

            * gcc.target/i386/pr94942.c: New test.

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

* [Bug target/94942] [10 Regression] ICE: in extract_constrain_insn, at recog.c:2195 (insn does not satisfy its constraints) with -O -flive-range-shrinkage -ftree-vrp -mavx512vl
  2020-05-04 10:54 [Bug target/94942] New: [10/11 Regression] ICE: in extract_constrain_insn, at recog.c:2195 (insn does not satisfy its constraints) with -O -flive-range-shrinkage -ftree-vrp -mavx512vl zsojka at seznam dot cz
                   ` (2 preceding siblings ...)
  2020-05-05  9:35 ` cvs-commit at gcc dot gnu.org
@ 2020-05-05  9:38 ` jakub at gcc dot gnu.org
  2020-05-07 11:56 ` jakub at gcc dot gnu.org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2020-05-05  9:38 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[10/11 Regression] ICE: in  |[10 Regression] ICE: in
                   |extract_constrain_insn, at  |extract_constrain_insn, at
                   |recog.c:2195 (insn does not |recog.c:2195 (insn does not
                   |satisfy its constraints)    |satisfy its constraints)
                   |with -O                     |with -O
                   |-flive-range-shrinkage      |-flive-range-shrinkage
                   |-ftree-vrp -mavx512vl       |-ftree-vrp -mavx512vl

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed for 11+ for now.

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

* [Bug target/94942] [10 Regression] ICE: in extract_constrain_insn, at recog.c:2195 (insn does not satisfy its constraints) with -O -flive-range-shrinkage -ftree-vrp -mavx512vl
  2020-05-04 10:54 [Bug target/94942] New: [10/11 Regression] ICE: in extract_constrain_insn, at recog.c:2195 (insn does not satisfy its constraints) with -O -flive-range-shrinkage -ftree-vrp -mavx512vl zsojka at seznam dot cz
                   ` (3 preceding siblings ...)
  2020-05-05  9:38 ` [Bug target/94942] [10 " jakub at gcc dot gnu.org
@ 2020-05-07 11:56 ` jakub at gcc dot gnu.org
  2020-05-07 13:27 ` cvs-commit at gcc dot gnu.org
  2020-05-07 13:33 ` jakub at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2020-05-07 11:56 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|10.0                        |10.2

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 10.1 has been released.

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

* [Bug target/94942] [10 Regression] ICE: in extract_constrain_insn, at recog.c:2195 (insn does not satisfy its constraints) with -O -flive-range-shrinkage -ftree-vrp -mavx512vl
  2020-05-04 10:54 [Bug target/94942] New: [10/11 Regression] ICE: in extract_constrain_insn, at recog.c:2195 (insn does not satisfy its constraints) with -O -flive-range-shrinkage -ftree-vrp -mavx512vl zsojka at seznam dot cz
                   ` (4 preceding siblings ...)
  2020-05-07 11:56 ` jakub at gcc dot gnu.org
@ 2020-05-07 13:27 ` cvs-commit at gcc dot gnu.org
  2020-05-07 13:33 ` jakub at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-05-07 13:27 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Jakub Jelinek
<jakub@gcc.gnu.org>:

https://gcc.gnu.org/g:1b53c1169a6d0b10d43de0a56aabf7386b67496b

commit r10-8111-g1b53c1169a6d0b10d43de0a56aabf7386b67496b
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Tue May 5 11:33:47 2020 +0200

    x86: Fix *vec_dupv4hi constraints [PR94942]

    This insn and split splits into HI->V?HImode broadcast for avx2 and later,
    but either the operands need to be %xmm0-%xmm15 (i.e. VEX encoded insn), or
    the insn needs both AVX512BW and AVX512VL.
    Now, Yv constraint is v for AVX512VL and x otherwise, so for -mavx512vl
-mno-avx512bw
    we ICE if we end up with a %xmm16+ register from RA.
    Yw constraint is v for AVX512VL and AVX512BW and nothing otherwise, so
    in this pattern we actually need xYw.

    2020-05-05  Jakub Jelinek  <jakub@redhat.com>

            PR target/94942
            * config/i386/mmx.md (*vec_dupv4hi): Use xYw constraints instead of
Yv.

            * gcc.target/i386/pr94942.c: New test.

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

* [Bug target/94942] [10 Regression] ICE: in extract_constrain_insn, at recog.c:2195 (insn does not satisfy its constraints) with -O -flive-range-shrinkage -ftree-vrp -mavx512vl
  2020-05-04 10:54 [Bug target/94942] New: [10/11 Regression] ICE: in extract_constrain_insn, at recog.c:2195 (insn does not satisfy its constraints) with -O -flive-range-shrinkage -ftree-vrp -mavx512vl zsojka at seznam dot cz
                   ` (5 preceding siblings ...)
  2020-05-07 13:27 ` cvs-commit at gcc dot gnu.org
@ 2020-05-07 13:33 ` jakub at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2020-05-07 13:33 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

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

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed for 10.2+ too.

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

end of thread, other threads:[~2020-05-07 13:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-04 10:54 [Bug target/94942] New: [10/11 Regression] ICE: in extract_constrain_insn, at recog.c:2195 (insn does not satisfy its constraints) with -O -flive-range-shrinkage -ftree-vrp -mavx512vl zsojka at seznam dot cz
2020-05-04 11:26 ` [Bug target/94942] " jakub at gcc dot gnu.org
2020-05-04 11:56 ` jakub at gcc dot gnu.org
2020-05-05  9:35 ` cvs-commit at gcc dot gnu.org
2020-05-05  9:38 ` [Bug target/94942] [10 " jakub at gcc dot gnu.org
2020-05-07 11:56 ` jakub at gcc dot gnu.org
2020-05-07 13:27 ` cvs-commit at gcc dot gnu.org
2020-05-07 13:33 ` jakub 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).