public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/103151] New: ICE in extract_insn, at recog.c:2769 since r12-3407-g9e2a82e1f9d2c4af
@ 2021-11-09  8:23 marxin at gcc dot gnu.org
  2021-11-09  8:24 ` [Bug target/103151] " marxin at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-11-09  8:23 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 103151
           Summary: ICE in extract_insn, at recog.c:2769 since
                    r12-3407-g9e2a82e1f9d2c4af
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: crazylht at gmail dot com, hjl at gcc dot gnu.org
  Target Milestone: ---
              Host: x86_64-linux-gnu

The following fails:

$ cat fp16.c
#include <immintrin.h>
__m256h f11() {
  int i;
  __m256h z;
  z[i] = i;
  return z;
}

$ gcc fp16.c -c -O3 -mavx512fp16 -mxop -c
cat fp16.c: In function ‘f11’:
fp16.c:7:1: error: unrecognizable insn:
    7 | }
      | ^
(insn 11 10 12 2 (set (reg:V16HF 89)
        (if_then_else:V16HF (subreg:V16HF (reg:V16HI 94) 0)
            (reg:V16HF 90)
            (reg:V16HF 89))) "fp16.c":5:8 -1
     (nil))
during RTL pass: vregs
fp16.c:7:1: internal compiler error: in extract_insn, at recog.c:2769
0x755186 _fatal_insn(char const*, rtx_def const*, char const*, int, char
const*)
        /home/marxin/Programming/gcc/gcc/rtl-error.c:108
0x7551a8 _fatal_insn_not_found(rtx_def const*, char const*, int, char const*)
        /home/marxin/Programming/gcc/gcc/rtl-error.c:116
0x753313 extract_insn(rtx_insn*)
        /home/marxin/Programming/gcc/gcc/recog.c:2769
0xbbe603 instantiate_virtual_regs_in_insn
        /home/marxin/Programming/gcc/gcc/function.c:1611
0xbbe603 instantiate_virtual_regs
        /home/marxin/Programming/gcc/gcc/function.c:1985
0xbbe603 execute
        /home/marxin/Programming/gcc/gcc/function.c:2034
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.

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

* [Bug target/103151] ICE in extract_insn, at recog.c:2769 since r12-3407-g9e2a82e1f9d2c4af
  2021-11-09  8:23 [Bug target/103151] New: ICE in extract_insn, at recog.c:2769 since r12-3407-g9e2a82e1f9d2c4af marxin at gcc dot gnu.org
@ 2021-11-09  8:24 ` marxin at gcc dot gnu.org
  2021-11-09  8:50 ` [Bug target/103151] ICE in extract_insn with __m256h and variable vec insert and -O1 -mavx512fp16 -mxop " crazylht at gmail dot com
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-11-09  8:24 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2021-11-09
     Ever confirmed|0                           |1
   Target Milestone|---                         |12.0
      Known to fail|                            |12.0

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

* [Bug target/103151] ICE in extract_insn with __m256h and variable vec insert and -O1 -mavx512fp16 -mxop since r12-3407-g9e2a82e1f9d2c4af
  2021-11-09  8:23 [Bug target/103151] New: ICE in extract_insn, at recog.c:2769 since r12-3407-g9e2a82e1f9d2c4af marxin at gcc dot gnu.org
  2021-11-09  8:24 ` [Bug target/103151] " marxin at gcc dot gnu.org
@ 2021-11-09  8:50 ` crazylht at gmail dot com
  2021-11-09 11:54 ` rguenth at gcc dot gnu.org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: crazylht at gmail dot com @ 2021-11-09  8:50 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Hongtao.liu <crazylht at gmail dot com> ---
Mine.

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

* [Bug target/103151] ICE in extract_insn with __m256h and variable vec insert and -O1 -mavx512fp16 -mxop since r12-3407-g9e2a82e1f9d2c4af
  2021-11-09  8:23 [Bug target/103151] New: ICE in extract_insn, at recog.c:2769 since r12-3407-g9e2a82e1f9d2c4af marxin at gcc dot gnu.org
  2021-11-09  8:24 ` [Bug target/103151] " marxin at gcc dot gnu.org
  2021-11-09  8:50 ` [Bug target/103151] ICE in extract_insn with __m256h and variable vec insert and -O1 -mavx512fp16 -mxop " crazylht at gmail dot com
@ 2021-11-09 11:54 ` rguenth at gcc dot gnu.org
  2021-11-10  5:05 ` crazylht at gmail dot com
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-11-09 11:54 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|12.0                        |---
             Target|                            |x86_64-*-*

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

* [Bug target/103151] ICE in extract_insn with __m256h and variable vec insert and -O1 -mavx512fp16 -mxop since r12-3407-g9e2a82e1f9d2c4af
  2021-11-09  8:23 [Bug target/103151] New: ICE in extract_insn, at recog.c:2769 since r12-3407-g9e2a82e1f9d2c4af marxin at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2021-11-09 11:54 ` rguenth at gcc dot gnu.org
@ 2021-11-10  5:05 ` crazylht at gmail dot com
  2021-11-11  1:26 ` cvs-commit at gcc dot gnu.org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: crazylht at gmail dot com @ 2021-11-10  5:05 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Hongtao.liu <crazylht at gmail dot com> ---
vpcmov can be extended to V8HF/V16HF under TARGET_XOP, i'm testing a patch.

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

* [Bug target/103151] ICE in extract_insn with __m256h and variable vec insert and -O1 -mavx512fp16 -mxop since r12-3407-g9e2a82e1f9d2c4af
  2021-11-09  8:23 [Bug target/103151] New: ICE in extract_insn, at recog.c:2769 since r12-3407-g9e2a82e1f9d2c4af marxin at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2021-11-10  5:05 ` crazylht at gmail dot com
@ 2021-11-11  1:26 ` cvs-commit at gcc dot gnu.org
  2021-11-11  1:27 ` crazylht at gmail dot com
  2021-11-11  4:04 ` pinskia at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-11-11  1:26 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from CVS 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:e166cada0813f8b382bacb7f01e1d8d235bf3b0f

commit r12-5141-ge166cada0813f8b382bacb7f01e1d8d235bf3b0f
Author: liuhongt <hongtao.liu@intel.com>
Date:   Wed Nov 10 12:53:43 2021 +0800

    Extend vpcmov to handle V8HF/V16HFmode under TARGET_XOP.

    gcc/ChangeLog:

            PR target/103151
            * config/i386/sse.md (V_128_256): Extend to V8HF/V16HF.
            (avxsizesuffix): Ditto.

    gcc/testsuite/ChangeLog:

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

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

* [Bug target/103151] ICE in extract_insn with __m256h and variable vec insert and -O1 -mavx512fp16 -mxop since r12-3407-g9e2a82e1f9d2c4af
  2021-11-09  8:23 [Bug target/103151] New: ICE in extract_insn, at recog.c:2769 since r12-3407-g9e2a82e1f9d2c4af marxin at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2021-11-11  1:26 ` cvs-commit at gcc dot gnu.org
@ 2021-11-11  1:27 ` crazylht at gmail dot com
  2021-11-11  4:04 ` pinskia at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: crazylht at gmail dot com @ 2021-11-11  1:27 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Hongtao.liu <crazylht at gmail dot com> ---
Fixed in GCC12.

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

* [Bug target/103151] ICE in extract_insn with __m256h and variable vec insert and -O1 -mavx512fp16 -mxop since r12-3407-g9e2a82e1f9d2c4af
  2021-11-09  8:23 [Bug target/103151] New: ICE in extract_insn, at recog.c:2769 since r12-3407-g9e2a82e1f9d2c4af marxin at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2021-11-11  1:27 ` crazylht at gmail dot com
@ 2021-11-11  4:04 ` pinskia at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-11-11  4:04 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |12.0
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Fixed.

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

end of thread, other threads:[~2021-11-11  4:04 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-09  8:23 [Bug target/103151] New: ICE in extract_insn, at recog.c:2769 since r12-3407-g9e2a82e1f9d2c4af marxin at gcc dot gnu.org
2021-11-09  8:24 ` [Bug target/103151] " marxin at gcc dot gnu.org
2021-11-09  8:50 ` [Bug target/103151] ICE in extract_insn with __m256h and variable vec insert and -O1 -mavx512fp16 -mxop " crazylht at gmail dot com
2021-11-09 11:54 ` rguenth at gcc dot gnu.org
2021-11-10  5:05 ` crazylht at gmail dot com
2021-11-11  1:26 ` cvs-commit at gcc dot gnu.org
2021-11-11  1:27 ` crazylht at gmail dot com
2021-11-11  4:04 ` pinskia 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).