public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/94814] New: [9 Regression] ICE: RTL check: expected code 'const_int', have 'reg' in output_3367, at config/aarch64/atomics.md:755
@ 2020-04-28 10:03 zsojka at seznam dot cz
  2020-04-28 12:27 ` [Bug target/94814] [8 " cvs-commit at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: zsojka at seznam dot cz @ 2020-04-28 10:03 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 94814
           Summary: [9 Regression] ICE: RTL check: expected code
                    'const_int', have 'reg' in output_3367, at
                    config/aarch64/atomics.md:755
           Product: gcc
           Version: 8.4.1
            Status: UNCONFIRMED
          Keywords: ice-checking
          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 48391
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48391&action=edit
reduced testcase

This looks like a recent regression on the 8-branch. This was fixed on the
9-branch in PR94518, but now the problem triggers on the 8-branch as well.

Compiler output:
$ /repo/build-gcc-8-branch-aarch64/./gcc/cc1plus tsan_interface_atomic.ii
 void b()
Analyzing compilation unit
Performing interprocedural optimizations
 <*free_lang_data> <visibility> <build_ssa_passes> <opt_local_passes>
<targetclone> <free-fnsummary> <whole-program> <fnsummary> <inline>
<free-fnsummary> <single-use> <comdats>Assembling functions:
 <materialize-all-clones> void b()during RTL pass: final

tsan_interface_atomic.ii: In function 'void b()':
tsan_interface_atomic.ii:2:41: internal compiler error: RTL check: expected
code 'const_int', have 'reg' in output_3367, at config/aarch64/atomics.md:755
 void b() { __sync_fetch_and_and(&a, c); }
                                         ^
0x74e65b rtl_check_failed_code1(rtx_def const*, rtx_code, char const*, int,
char const*)
        /repo/gcc-8-branch/gcc/rtl.c:849
0x8d28f2 output_3367
        /repo/gcc-8-branch/gcc/config/aarch64/atomics.md:755
0xd446db final_scan_insn_1
        /repo/gcc-8-branch/gcc/final.c:3111
0xd44dcb final_scan_insn(rtx_insn*, _IO_FILE*, int, int, int*)
        /repo/gcc-8-branch/gcc/final.c:3224
0xd450b7 final_1
        /repo/gcc-8-branch/gcc/final.c:2091
0xd45ee6 rest_of_handle_final
        /repo/gcc-8-branch/gcc/final.c:4677
0xd45ee6 execute
        /repo/gcc-8-branch/gcc/final.c:4755
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.

Build with RTL checking is broken.

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

end of thread, other threads:[~2020-04-28 13:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-28 10:03 [Bug target/94814] New: [9 Regression] ICE: RTL check: expected code 'const_int', have 'reg' in output_3367, at config/aarch64/atomics.md:755 zsojka at seznam dot cz
2020-04-28 12:27 ` [Bug target/94814] [8 " cvs-commit at gcc dot gnu.org
2020-04-28 12:32 ` avieira at gcc dot gnu.org
2020-04-28 13:31 ` rguenth 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).