public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "zsojka at seznam dot cz" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/105974] New: [13 Regression] ICE: RTL check: expected elt 0 type 'i' or 'n', have 'w' (rtx const_int) in arm_bfi_1_p, at config/arm/arm.cc:10214
Date: Tue, 14 Jun 2022 14:19:28 +0000	[thread overview]
Message-ID: <bug-105974-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 105974
           Summary: [13 Regression] ICE: RTL check: expected elt 0 type
                    'i' or 'n', have 'w' (rtx const_int) in arm_bfi_1_p,
                    at config/arm/arm.cc:10214
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Keywords: build, 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: armv7a-hardfloat-linux-gnueabi

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

This currently breaks build with RTL checking enabled.

Compiler output:
$ /repo/build-gcc-trunk-armv7a-hardfloat/./gcc/cc1 -O2 -march=armv7-a+vfpv4
testcase.c 
 __gnu_fractqquda
Analyzing compilation unit
Performing interprocedural optimizations
 <*free_lang_data> {heap 932k} <visibility> {heap 932k} <build_ssa_passes>
{heap 932k} <opt_local_passes> {heap 1212k} <remove_symbols> {heap 1684k}
<targetclone> {heap 1684k} <free-fnsummary> {heap 1684k} <increase_alignment>
{heap 1684k}Streaming LTO
 <whole-program> {heap 1684k} <profile_estimate> {heap 1684k} <icf> {heap
1684k} <devirt> {heap 1684k} <cp> {heap 1684k} <sra> {heap 1684k} <fnsummary>
{heap 1684k} <inline> {heap 1684k} <pure-const> {heap 1684k} <modref> {heap
1684k} <free-fnsummary> {heap 1684k} <static-var> {heap 1684k} <single-use>
{heap 1684k} <comdats> {heap 1684k}Assembling functions:
 __gnu_fractqqudaduring RTL pass: combine

testcase.c: In function '__gnu_fractqquda':
testcase.c:9:1: internal compiler error: RTL check: expected elt 0 type 'i' or
'n', have 'w' (rtx const_int) in arm_bfi_1_p, at config/arm/arm.cc:10214
    9 | }
      | ^
0x71d11e rtl_check_failed_type2(rtx_def const*, int, int, int, char const*,
int, char const*)
        /repo/gcc-trunk/gcc/rtl.cc:907
0x7d01d3 arm_bfi_1_p
        /repo/gcc-trunk/gcc/config/arm/arm.cc:10214
0x14406d6 arm_bfi_p
        /repo/gcc-trunk/gcc/config/arm/arm.cc:10255
0x14406d6 arm_rtx_costs_internal
        /repo/gcc-trunk/gcc/config/arm/arm.cc:11027
0x14406d6 arm_rtx_costs
        /repo/gcc-trunk/gcc/config/arm/arm.cc:12058
0x102c33e rtx_cost(rtx_def*, machine_mode, rtx_code, int, bool)
        /repo/gcc-trunk/gcc/rtlanal.cc:4629
0x1b69e98 set_src_cost
        /repo/gcc-trunk/gcc/rtl.h:2943
0x1b69e98 distribute_and_simplify_rtx
        /repo/gcc-trunk/gcc/combine.cc:10013
0x1b77941 simplify_logical
        /repo/gcc-trunk/gcc/combine.cc:7103
0x1b77941 combine_simplify_rtx
        /repo/gcc-trunk/gcc/combine.cc:6330
0x1b79d19 subst
        /repo/gcc-trunk/gcc/combine.cc:5605
0x1b7d3d7 try_combine
        /repo/gcc-trunk/gcc/combine.cc:3288
0x1b85dd5 combine_instructions
        /repo/gcc-trunk/gcc/combine.cc:1266
0x1b85dd5 rest_of_handle_combine
        /repo/gcc-trunk/gcc/combine.cc:14976
0x1b85dd5 execute
        /repo/gcc-trunk/gcc/combine.cc:15021
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.

$ /repo/build-gcc-trunk-armv7a-hardfloat/./gcc/xgcc -v
Using built-in specs.
COLLECT_GCC=/repo/build-gcc-trunk-armv7a-hardfloat/./gcc/xgcc
Target: armv7a-hardfloat-linux-gnueabi
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 --with-float=hard --with-fpu=vfpv4
--with-arch=armv7-a --with-sysroot=/usr/armv7a-hardfloat-linux-gnueabi
--build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu
--target=armv7a-hardfloat-linux-gnueabi
--with-ld=/usr/bin/armv7a-hardfloat-linux-gnueabi-ld
--with-as=/usr/bin/armv7a-hardfloat-linux-gnueabi-as --disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-r13-1089-20220614140553-g8f6c317b3a1-checking-yes-rtl-df-extra-armv7a-hardfloat
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 13.0.0 20220614 (experimental) (GCC)

             reply	other threads:[~2022-06-14 14:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-14 14:19 zsojka at seznam dot cz [this message]
2022-06-15  9:08 ` [Bug target/105974] " rguenth at gcc dot gnu.org
2022-06-15  9:33 ` rearnsha at gcc dot gnu.org
2022-06-15 12:43 ` cvs-commit at gcc dot gnu.org
2022-06-15 12:44 ` rearnsha 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-105974-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).