public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/114334] New: [14 Regression] ICE: in extract_insn, at recog.cc:2812 (unrecognizable insn and:HF?) with lroundf16() and -ffast-math -mavx512fp16
@ 2024-03-14 11:06 zsojka at seznam dot cz
  2024-03-14 11:54 ` [Bug target/114334] " rguenth at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: zsojka at seznam dot cz @ 2024-03-14 11:06 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 114334
           Summary: [14 Regression] ICE: in extract_insn, at recog.cc:2812
                    (unrecognizable insn and:HF?) with lroundf16() and
                    -ffast-math -mavx512fp16
           Product: gcc
           Version: 14.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
            Target: x86_64-pc-linux-gnu

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

Compiler output:
$ x86_64-pc-linux-gnu-gcc -ffast-math -mavx512fp16 testcase.c          
testcase.c: In function 'foo':
testcase.c:5:1: error: unrecognizable insn:
    5 | }
      | ^
(insn 10 9 11 2 (set (reg:HF 102)
        (and:HF (reg:HF 104)
            (reg:HF 101))) "testcase.c":4:10 -1
     (nil))
during RTL pass: vregs
testcase.c:5:1: internal compiler error: in extract_insn, at recog.cc:2812
0x8071a7 _fatal_insn(char const*, rtx_def const*, char const*, int, char
const*)
        /repo/gcc-trunk/gcc/rtl-error.cc:108
0x807224 _fatal_insn_not_found(rtx_def const*, char const*, int, char const*)
        /repo/gcc-trunk/gcc/rtl-error.cc:116
0x7f6093 extract_insn(rtx_insn*)
        /repo/gcc-trunk/gcc/recog.cc:2812
0x113444d instantiate_virtual_regs_in_insn
        /repo/gcc-trunk/gcc/function.cc:1611
0x113444d instantiate_virtual_regs
        /repo/gcc-trunk/gcc/function.cc:1994
0x113444d execute
        /repo/gcc-trunk/gcc/function.cc:2041
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.

$ 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-r14-9454-20240313184120-g11caf47b599-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/14.0.1/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
--disable-bootstrap --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 --enable-libsanitizer
--disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-r14-9454-20240313184120-g11caf47b599-checking-yes-rtl-df-extra-nobootstrap-amd64
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 14.0.1 20240313 (experimental) (GCC)

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

* [Bug target/114334] [14 Regression] ICE: in extract_insn, at recog.cc:2812 (unrecognizable insn and:HF?) with lroundf16() and -ffast-math -mavx512fp16
  2024-03-14 11:06 [Bug target/114334] New: [14 Regression] ICE: in extract_insn, at recog.cc:2812 (unrecognizable insn and:HF?) with lroundf16() and -ffast-math -mavx512fp16 zsojka at seznam dot cz
@ 2024-03-14 11:54 ` rguenth at gcc dot gnu.org
  2024-03-15  2:00 ` liuhongt at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2024-03-14 11:54 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |14.0

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

* [Bug target/114334] [14 Regression] ICE: in extract_insn, at recog.cc:2812 (unrecognizable insn and:HF?) with lroundf16() and -ffast-math -mavx512fp16
  2024-03-14 11:06 [Bug target/114334] New: [14 Regression] ICE: in extract_insn, at recog.cc:2812 (unrecognizable insn and:HF?) with lroundf16() and -ffast-math -mavx512fp16 zsojka at seznam dot cz
  2024-03-14 11:54 ` [Bug target/114334] " rguenth at gcc dot gnu.org
@ 2024-03-15  2:00 ` liuhongt at gcc dot gnu.org
  2024-03-15 15:00 ` law at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: liuhongt at gcc dot gnu.org @ 2024-03-15  2:00 UTC (permalink / raw)
  To: gcc-bugs

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

Hongtao Liu <liuhongt at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2024-03-15
                 CC|                            |liuhongt at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Hongtao Liu <liuhongt at gcc dot gnu.org> ---
Mine

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

* [Bug target/114334] [14 Regression] ICE: in extract_insn, at recog.cc:2812 (unrecognizable insn and:HF?) with lroundf16() and -ffast-math -mavx512fp16
  2024-03-14 11:06 [Bug target/114334] New: [14 Regression] ICE: in extract_insn, at recog.cc:2812 (unrecognizable insn and:HF?) with lroundf16() and -ffast-math -mavx512fp16 zsojka at seznam dot cz
  2024-03-14 11:54 ` [Bug target/114334] " rguenth at gcc dot gnu.org
  2024-03-15  2:00 ` liuhongt at gcc dot gnu.org
@ 2024-03-15 15:00 ` law at gcc dot gnu.org
  2024-03-18  0:55 ` cvs-commit at gcc dot gnu.org
  2024-03-18  0:55 ` liuhongt at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: law at gcc dot gnu.org @ 2024-03-15 15:00 UTC (permalink / raw)
  To: gcc-bugs

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

Jeffrey A. Law <law at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1
                 CC|                            |law at gcc dot gnu.org

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

* [Bug target/114334] [14 Regression] ICE: in extract_insn, at recog.cc:2812 (unrecognizable insn and:HF?) with lroundf16() and -ffast-math -mavx512fp16
  2024-03-14 11:06 [Bug target/114334] New: [14 Regression] ICE: in extract_insn, at recog.cc:2812 (unrecognizable insn and:HF?) with lroundf16() and -ffast-math -mavx512fp16 zsojka at seznam dot cz
                   ` (2 preceding siblings ...)
  2024-03-15 15:00 ` law at gcc dot gnu.org
@ 2024-03-18  0:55 ` cvs-commit at gcc dot gnu.org
  2024-03-18  0:55 ` liuhongt at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2024-03-18  0:55 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by hongtao Liu <liuhongt@gcc.gnu.org>:

https://gcc.gnu.org/g:942d470a5a4fb1baeff943127a81b441dffaa543

commit r14-9512-g942d470a5a4fb1baeff943127a81b441dffaa543
Author: liuhongt <hongtao.liu@intel.com>
Date:   Fri Mar 15 10:59:10 2024 +0800

    Add missing <any_logic>hf/bf patterns.

    It will be used by copysignm3/xorsignm3/lroundmn2 expanders.

    gcc/ChangeLog:

            PR target/114334
            * config/i386/i386.md (mode): Add new number V8BF,V16BF,V32BF.
            (MODEF248): New mode iterator.
            (ssevecmodesuffix): Hanlde BF and HF.
            * config/i386/sse.md (andnot<mode>3): Extend to HF/BF.
            (<code><mode>3): Ditto.

    gcc/testsuite/ChangeLog:

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

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

* [Bug target/114334] [14 Regression] ICE: in extract_insn, at recog.cc:2812 (unrecognizable insn and:HF?) with lroundf16() and -ffast-math -mavx512fp16
  2024-03-14 11:06 [Bug target/114334] New: [14 Regression] ICE: in extract_insn, at recog.cc:2812 (unrecognizable insn and:HF?) with lroundf16() and -ffast-math -mavx512fp16 zsojka at seznam dot cz
                   ` (3 preceding siblings ...)
  2024-03-18  0:55 ` cvs-commit at gcc dot gnu.org
@ 2024-03-18  0:55 ` liuhongt at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: liuhongt at gcc dot gnu.org @ 2024-03-18  0:55 UTC (permalink / raw)
  To: gcc-bugs

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

Hongtao Liu <liuhongt at gcc dot gnu.org> changed:

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

--- Comment #3 from Hongtao Liu <liuhongt at gcc dot gnu.org> ---
Fixed in GCC14.

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

end of thread, other threads:[~2024-03-18  0:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-14 11:06 [Bug target/114334] New: [14 Regression] ICE: in extract_insn, at recog.cc:2812 (unrecognizable insn and:HF?) with lroundf16() and -ffast-math -mavx512fp16 zsojka at seznam dot cz
2024-03-14 11:54 ` [Bug target/114334] " rguenth at gcc dot gnu.org
2024-03-15  2:00 ` liuhongt at gcc dot gnu.org
2024-03-15 15:00 ` law at gcc dot gnu.org
2024-03-18  0:55 ` cvs-commit at gcc dot gnu.org
2024-03-18  0:55 ` liuhongt 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).