public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/106994] New: ICE in extract_insn, at recog.cc:2791 since r13-2730-gd0c73b6c85677e67
Date: Wed, 21 Sep 2022 07:54:01 +0000	[thread overview]
Message-ID: <bug-106994-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 106994
           Summary: ICE in extract_insn, at recog.cc:2791 since
                    r13-2730-gd0c73b6c85677e67
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          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
            Blocks: 26163
  Target Milestone: ---

The following is reduced from 526.blender_r:

$ cat view2d.i
typedef struct {
  float ymin, ymax;
} rctf;

rctf view2d_map_cur_using_maskUI_view2d_view_ortho_curmasked;
float view2d_map_cur_using_maskUI_view2d_view_ortho_yofs;

void BLI_rctf_translate();
void glLoadIdentity();

void
view2d_map_cur_using_maskUI_view2d_view_ortho() {
  BLI_rctf_translate(&view2d_map_cur_using_maskUI_view2d_view_ortho_curmasked);
  view2d_map_cur_using_maskUI_view2d_view_ortho_curmasked.ymin =
     
__builtin_floor(view2d_map_cur_using_maskUI_view2d_view_ortho_curmasked.ymin) -
      view2d_map_cur_using_maskUI_view2d_view_ortho_yofs;
  view2d_map_cur_using_maskUI_view2d_view_ortho_curmasked.ymax =
     
__builtin_floor(view2d_map_cur_using_maskUI_view2d_view_ortho_curmasked.ymax) -
      view2d_map_cur_using_maskUI_view2d_view_ortho_yofs;
  glLoadIdentity();
}

$ gcc view2d.i -Ofast -march=skylake -flto -shared
view2d.i: In function 'view2d_map_cur_using_maskUI_view2d_view_ortho':
view2d.i:21:1: error: unrecognizable insn:
   21 | }
      | ^
(insn 9 8 10 2 (set (reg:V2SF 84 [ vect__9.5 ])
        (unspec:V2SF [
                (mem/c:V2SF (reg/f:DI 87) [1 MEM <vector(2) float> [(float
*)&view2d_map_cur_using_maskUI_view2d_view_ortho_curmasked]+0 S8 A64])
                (const_int 9 [0x9])
            ] UNSPEC_ROUND)) "view2d.i":15:7 -1
     (nil))
during RTL pass: vregs
view2d.i:21:1: internal compiler error: in extract_insn, at recog.cc:2791
0x72c52c _fatal_insn(char const*, rtx_def const*, char const*, int, char
const*)
        /home/marxin/Programming/gcc/gcc/rtl-error.cc:108
0x72c54e _fatal_insn_not_found(rtx_def const*, char const*, int, char const*)
        /home/marxin/Programming/gcc/gcc/rtl-error.cc:116
0x72a75b extract_insn(rtx_insn*)
        /home/marxin/Programming/gcc/gcc/recog.cc:2791
0xab72a5 instantiate_virtual_regs_in_insn
        /home/marxin/Programming/gcc/gcc/function.cc:1611
0xab72a5 instantiate_virtual_regs
        /home/marxin/Programming/gcc/gcc/function.cc:1985
0xab72a5 execute
        /home/marxin/Programming/gcc/gcc/function.cc:2034
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.
lto-wrapper: fatal error: gcc returned 1 exit status
compilation terminated.
mold: fatal: lto-wrapper failed
collect2: error: ld returned 1 exit status


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=26163
[Bug 26163] [meta-bug] missed optimization in SPEC (2k17, 2k and 2k6 and 95)

             reply	other threads:[~2022-09-21  7:54 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-21  7:54 marxin at gcc dot gnu.org [this message]
2022-09-21  7:54 ` [Bug target/106994] [13 Regression] " marxin at gcc dot gnu.org
2022-09-21  8:02 ` crazylht at gmail dot com
2022-09-21  8:19 ` crazylht at gmail dot com
2022-09-22  6:03 ` cvs-commit at gcc dot gnu.org
2022-09-22  6:05 ` crazylht at gmail dot com
2022-09-22  6:47 ` rguenth at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-106994-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).