public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/113819] New: ICE: RTL check: expected elt 3 type 'e' or 'u', have '0' (rtx code_label) in PATTERN, at rtl.h:1511 with -mstringop-strategy=loop and asm goto with impossible constraint and _BitInt()
@ 2024-02-07 21:27 zsojka at seznam dot cz
  2024-02-07 21:33 ` [Bug target/113819] " pinskia at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: zsojka at seznam dot cz @ 2024-02-07 21:27 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 113819
           Summary: ICE: RTL check: expected elt 3 type 'e' or 'u', have
                    '0' (rtx code_label) in PATTERN, at rtl.h:1511 with
                    -mstringop-strategy=loop and asm goto with impossible
                    constraint and _BitInt()
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          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: x86_64-pc-linux-gnu

Created attachment 57353
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57353&action=edit
reduced testcase (from gcc.dg/torture/pr100398.c)

This might need RTL checking enabled.

Compiler output:
$ x86_64-pc-linux-gnu-gcc -mstringop-strategy=loop testcase.c
during RTL pass: expand
testcase.c: In function 'test5_limit':
testcase.c:4:3: internal compiler error: RTL check: expected elt 3 type 'e' or
'u', have '0' (rtx code_label) in PATTERN, at rtl.h:1511
    4 |   __asm__ goto("" : "=r"(addr) : : : t_err);
      |   ^~~~~~~
0x8072bd rtl_check_failed_type2(rtx_def const*, int, int, int, char const*,
int, char const*)
        /repo/gcc-trunk/gcc/rtl.cc:761
0x72a1a4 PATTERN(rtx_def*)
        /repo/gcc-trunk/gcc/rtl.h:1511
0x72cd2d PATTERN(rtx_def*)
        /repo/gcc-trunk/gcc/rtl.h:1479
0x72cd2d expand_asm_stmt
        /repo/gcc-trunk/gcc/cfgexpand.cc:3681
0xf845a9 expand_gimple_stmt_1
        /repo/gcc-trunk/gcc/cfgexpand.cc:3923
0xf845a9 expand_gimple_stmt
        /repo/gcc-trunk/gcc/cfgexpand.cc:4071
0xf8b3be expand_gimple_basic_block
        /repo/gcc-trunk/gcc/cfgexpand.cc:6127
0xf8d097 execute
        /repo/gcc-trunk/gcc/cfgexpand.cc:6866
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.

$ x86_64-pc-linux-gnu-gcc -v
Using built-in specs.
COLLECT_GCC=/repo/gcc-trunk/binary-latest-amd64/bin/x86_64-pc-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-r14-8869-20240207154951-g8636c538b68-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/14.0.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++
--enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra
--disable-bootstrap --with-cloog --with-ppl --with-isl
--build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu
--target=x86_64-pc-linux-gnu --with-ld=/usr/bin/x86_64-pc-linux-gnu-ld
--with-as=/usr/bin/x86_64-pc-linux-gnu-as --disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-r14-8869-20240207154951-g8636c538b68-checking-yes-rtl-df-extra-nobootstrap-amd64
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 14.0.1 20240207 (experimental) (GCC)

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

* [Bug target/113819] ICE: RTL check: expected elt 3 type 'e' or 'u', have '0' (rtx code_label) in PATTERN, at rtl.h:1511 with -mstringop-strategy=loop and asm goto with impossible constraint and _BitInt()
  2024-02-07 21:27 [Bug target/113819] New: ICE: RTL check: expected elt 3 type 'e' or 'u', have '0' (rtx code_label) in PATTERN, at rtl.h:1511 with -mstringop-strategy=loop and asm goto with impossible constraint and _BitInt() zsojka at seznam dot cz
@ 2024-02-07 21:33 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-02-07 21:33 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
>This might need RTL checking enabled.


It does and it is a dup of bug 113415, that is it is the same issue as PR
113415 .

*** This bug has been marked as a duplicate of bug 113415 ***

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

end of thread, other threads:[~2024-02-07 21:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-07 21:27 [Bug target/113819] New: ICE: RTL check: expected elt 3 type 'e' or 'u', have '0' (rtx code_label) in PATTERN, at rtl.h:1511 with -mstringop-strategy=loop and asm goto with impossible constraint and _BitInt() zsojka at seznam dot cz
2024-02-07 21:33 ` [Bug target/113819] " 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).