From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 13E8B385783E; Fri, 14 Oct 2022 11:20:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 13E8B385783E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1665746451; bh=VuTRw3YOrh6+caPnYxh5M0c04wBjL0iysAF7F4ePj7k=; h=From:To:Subject:Date:From; b=xU+bORJoosLgBdq5LkFTJrRZWxONrM9fK+MUqtPRjsA7i+tVH2gZ/YtwVpg2bWQRa /q8LCABgymsQ4o+AGtUtPCTM3IOEnn/wBd+avgbB6I/ZeBEW9cD3pNX0L4dL5fzto8 tORVyVMrm77ZOmLnP7z5l6ZfNbkTj6Z6J2cKoZ3o= From: "zsojka at seznam dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/107262] New: ICE: in as_a, at machmode.h:366 with __bf16 arithmetics at -Ofast Date: Fri, 14 Oct 2022 11:20:50 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: zsojka at seznam dot cz X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone cf_gcchost cf_gcctarget attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107262 Bug ID: 107262 Summary: ICE: in as_a, at machmode.h:366 with __bf16 arithmetics at -Ofast 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: x86_64-pc-linux-gnu Created attachment 53704 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D53704&action=3Dedit reduced testcase Compiler output: $ x86_64-pc-linux-gnu-gcc -Ofast testcase.c=20 during RTL pass: expand testcase.c: In function 'foo': testcase.c:8:10: internal compiler error: in as_a, at machmode.h:366 8 | return b; | ^ 0x6ddea3 scalar_int_mode as_a(machine_mode) /repo/gcc-trunk/gcc/machmode.h:366 0x6e4005 scalar_mode as_a(machine_mode) /repo/gcc-trunk/gcc/expr.cc:373 0x6e4005 convert_mode_scalar /repo/gcc-trunk/gcc/expr.cc:325 0xfe4442 convert_mode_scalar /repo/gcc-trunk/gcc/expr.cc:420 0xfe57f8 convert_modes(machine_mode, machine_mode, rtx_def*, int) /repo/gcc-trunk/gcc/expr.cc:924 0x1282633 expand_binop(machine_mode, optab_tag, rtx_def*, rtx_def*, rtx_def= *, int, optab_methods) /repo/gcc-trunk/gcc/optabs.cc:1668 0xfd8f7c expand_expr_real_2(separate_ops*, rtx_def*, machine_mode, expand_modifier) /repo/gcc-trunk/gcc/expr.cc:10593 0xfe0295 expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) /repo/gcc-trunk/gcc/expr.cc:10795 0xeac81c expand_expr /repo/gcc-trunk/gcc/expr.h:310 0xeac81c expand_return /repo/gcc-trunk/gcc/cfgexpand.cc:3809 0xeac81c expand_gimple_stmt_1 /repo/gcc-trunk/gcc/cfgexpand.cc:3918 0xeac81c expand_gimple_stmt /repo/gcc-trunk/gcc/cfgexpand.cc:4044 0xeb251e expand_gimple_basic_block /repo/gcc-trunk/gcc/cfgexpand.cc:6096 0xeb411f execute /repo/gcc-trunk/gcc/cfgexpand.cc:6822 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See for instructions. $ x86_64-pc-linux-gnu-gcc -v Using built-in specs. COLLECT_GCC=3D/repo/gcc-trunk/binary-latest-amd64/bin/x86_64-pc-linux-gnu-g= cc COLLECT_LTO_WRAPPER=3D/repo/gcc-trunk/binary-trunk-r13-3298-20221014120235-= ga75e9bee7c2-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc= /x86_64-pc-linux-gnu/13.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /repo/gcc-trunk//configure --enable-languages=3Dc,c++ --enable-valgrind-annotations --disable-nls --enable-checking=3Dyes,rtl,df,= extra --disable-bootstrap --with-cloog --with-ppl --with-isl --build=3Dx86_64-pc-linux-gnu --host=3Dx86_64-pc-linux-gnu --target=3Dx86_64-pc-linux-gnu --with-ld=3D/usr/bin/x86_64-pc-linux-gnu-ld --with-as=3D/usr/bin/x86_64-pc-linux-gnu-as --disable-libstdcxx-pch --prefix=3D/repo/gcc-trunk//binary-trunk-r13-3298-20221014120235-ga75e9bee7= c2-checking-yes-rtl-df-extra-nobootstrap-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 13.0.0 20221014 (experimental) (GCC)=