From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 42CB53858D33; Fri, 6 Jan 2023 11:42:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 42CB53858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1673005358; bh=jLtl0itSocgBQmxC+CaDQpUYlgahRRWQQ/um0Sra9X8=; h=From:To:Subject:Date:From; b=P5wvS1qHMJR5sdBI/QPfX3aOoNT+7yIjPzWkyzZzh0SD+xNF96Z4d8dncBFGOFWeG crF3csTV0SQO9JiqPGy9DUCPD4RXJZMFKf5N6muW6kr640bDELYv4oV3XS7OAZHWpI hr+lcTOKNBBrV4A152D2xLNwJQ8Bz/qg5lZ+iGhQ= From: "acoplan at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/108316] New: [13 Regression] ICE in maybe_gen_insn via expand_SCATTER_STORE when vectorizing for SVE Date: Fri, 06 Jan 2023 11:42:37 +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: X-Bugzilla-Severity: normal X-Bugzilla-Who: acoplan at gcc dot gnu.org 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 bug_severity priority component assigned_to reporter target_milestone 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=3D108316 Bug ID: 108316 Summary: [13 Regression] ICE in maybe_gen_insn via expand_SCATTER_STORE when vectorizing for SVE Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: acoplan at gcc dot gnu.org Target Milestone: --- The following appears to be a regression on the trunk: $ cat t.cc extern bool a[]; short i; void f(int b[][3][2]) { for (; i; i +=3D 4) a[i] =3D b[0][i] !=3D 0; } $ aarch64-none-elf-gcc -c t.cc -march=3Darmv9-a -O2 -fvect-cost-model=3Dunl= imited during RTL pass: expand t.cc: In function 'void f(int (*)[3][2])': t.cc:3:6: internal compiler error: in maybe_gen_insn, at optabs.cc:8059 3 | void f(int b[][3][2]) { | ^ 0x105f613 maybe_gen_insn(insn_code, unsigned int, expand_operand*) /home/alecop01/toolchain/src/gcc/gcc/optabs.cc:8059 0x105f80e maybe_expand_insn(insn_code, unsigned int, expand_operand*) /home/alecop01/toolchain/src/gcc/gcc/optabs.cc:8105 0x105ed93 expand_insn(insn_code, unsigned int, expand_operand*) /home/alecop01/toolchain/src/gcc/gcc/optabs.cc:8136 0xead67a expand_scatter_store_optab_fn /home/alecop01/toolchain/src/gcc/gcc/internal-fn.cc:3430 0xead8dd expand_SCATTER_STORE /home/alecop01/toolchain/src/gcc/gcc/internal-fn.def:137 0xeaddd2 expand_internal_call(internal_fn, gcall*) /home/alecop01/toolchain/src/gcc/gcc/internal-fn.cc:4436 0xeaddec expand_internal_call(gcall*) /home/alecop01/toolchain/src/gcc/gcc/internal-fn.cc:4444 0xbffbdc expand_call_stmt /home/alecop01/toolchain/src/gcc/gcc/cfgexpand.cc:2737 0xbffbdc expand_gimple_stmt_1 /home/alecop01/toolchain/src/gcc/gcc/cfgexpand.cc:3880 0xbffbdc expand_gimple_stmt /home/alecop01/toolchain/src/gcc/gcc/cfgexpand.cc:4044 0xc0916f expand_gimple_basic_block /home/alecop01/toolchain/src/gcc/gcc/cfgexpand.cc:6096 0xc0a9b9 execute /home/alecop01/toolchain/src/gcc/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.=