public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/108589] New: ICE: RTL check: expected code 'reg', have 'subreg' in rhs_regno, at rtl.h:1932 with -mtune=ampere1a -fno-split-wide-types
@ 2023-01-29  8:40 zsojka at seznam dot cz
  2023-01-30  4:26 ` [Bug target/108589] " pinskia at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: zsojka at seznam dot cz @ 2023-01-29  8:40 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 108589
           Summary: ICE: RTL check: expected code 'reg', have 'subreg' in
                    rhs_regno, at rtl.h:1932 with -mtune=ampere1a
                    -fno-split-wide-types
           Product: gcc
           Version: 13.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: aarch64-unknown-linux-gnu

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

This might need RTL checking enabled.

Compiler output:
$ aarch64-unknown-linux-gnu-gcc -O2 -mtune=ampere1a -fno-split-wide-types
testcase.c 
during RTL pass: sched1
testcase.c: In function 'foo':
testcase.c:11:1: internal compiler error: RTL check: expected code 'reg', have
'subreg' in rhs_regno, at rtl.h:1932
   11 | }
      | ^
0x7d1279 rtl_check_failed_code1(rtx_def const*, rtx_code, char const*, int,
char const*)
        /repo/gcc-trunk/gcc/rtl.cc:916
0x877f1a rhs_regno
        /repo/gcc-trunk/gcc/rtl.h:1932
0x87c0b2 rhs_regno
        /repo/gcc-trunk/gcc/config/aarch64/aarch64.cc:25511
0x87c0b2 aarch_macro_fusion_pair_p
        /repo/gcc-trunk/gcc/config/aarch64/aarch64.cc:25707
0x1fca135 sched_macro_fuse_insns
        /repo/gcc-trunk/gcc/sched-deps.cc:2852
0x1fca135 sched_analyze_insn
        /repo/gcc-trunk/gcc/sched-deps.cc:2891
0x1fcad29 deps_analyze_insn(deps_desc*, rtx_insn*)
        /repo/gcc-trunk/gcc/sched-deps.cc:3683
0x1fcdf9c sched_analyze(deps_desc*, rtx_insn*, rtx_insn*)
        /repo/gcc-trunk/gcc/sched-deps.cc:3836
0x112a3d1 compute_block_dependences
        /repo/gcc-trunk/gcc/sched-rgn.cc:2733
0x112a3d1 sched_rgn_compute_dependencies(int)
        /repo/gcc-trunk/gcc/sched-rgn.cc:3369
0x112ccb8 schedule_region
        /repo/gcc-trunk/gcc/sched-rgn.cc:3134
0x112ccb8 schedule_insns()
        /repo/gcc-trunk/gcc/sched-rgn.cc:3527
0x112d32c schedule_insns()
        /repo/gcc-trunk/gcc/sched-rgn.cc:3513
0x112d32c rest_of_handle_sched
        /repo/gcc-trunk/gcc/sched-rgn.cc:3731
0x112d32c execute
        /repo/gcc-trunk/gcc/sched-rgn.cc:3841
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.

$ aarch64-unknown-linux-gnu-gcc -v
Using built-in specs.
COLLECT_GCC=/repo/gcc-trunk/binary-latest-aarch64/bin/aarch64-unknown-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-r13-5461-20230127201120-g815e5740162-checking-yes-rtl-df-extra-aarch64/bin/../libexec/gcc/aarch64-unknown-linux-gnu/13.0.1/lto-wrapper
Target: aarch64-unknown-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
--with-sysroot=/usr/aarch64-unknown-linux-gnu --build=x86_64-pc-linux-gnu
--host=x86_64-pc-linux-gnu --target=aarch64-unknown-linux-gnu
--with-ld=/usr/bin/aarch64-unknown-linux-gnu-ld
--with-as=/usr/bin/aarch64-unknown-linux-gnu-as --disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-r13-5461-20230127201120-g815e5740162-checking-yes-rtl-df-extra-aarch64
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 13.0.1 20230127 (experimental) (GCC)

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

end of thread, other threads:[~2023-05-09  8:26 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-29  8:40 [Bug target/108589] New: ICE: RTL check: expected code 'reg', have 'subreg' in rhs_regno, at rtl.h:1932 with -mtune=ampere1a -fno-split-wide-types zsojka at seznam dot cz
2023-01-30  4:26 ` [Bug target/108589] " pinskia at gcc dot gnu.org
2023-01-30 11:08 ` ptomsich at gcc dot gnu.org
2023-01-30 22:11 ` ptomsich at gcc dot gnu.org
2023-01-31 15:34 ` cvs-commit at gcc dot gnu.org
2023-04-18  0:08 ` cvs-commit at gcc dot gnu.org
2023-04-18  0:09 ` cvs-commit at gcc dot gnu.org
2023-04-18  0:38 ` cvs-commit at gcc dot gnu.org
2023-05-09  8:26 ` ptomsich 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).