From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6A4DF386F02B; Tue, 21 Apr 2020 07:12:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6A4DF386F02B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1587453154; bh=1nQ8aSKV1LLhZuv3Y3zmhSh0KI+kUZFCqED6m+zOtPI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=a6FKf0a26q6TEU1G2isNweCLzcPJ8gBVlZBxKf0GxwN28ELDtYCUg54Qo6dF0rJBa 0If0Z5WHcGzzef/cg4oR9xiWv9Fuc9t7l4nHKnAg4AEd8zRS8QErDyKF59GOG5mTER kYKWHj1o+Fx8LjGcOrQLZhbAnbuHXPGizBIN3ckM= From: "felix.yang at huawei dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/94678] aarch64: unexpected result with -mgeneral-regs-only and sve Date: Tue, 21 Apr 2020 07:12:34 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 10.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: felix.yang at huawei dot com 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: Message-ID: In-Reply-To: References: 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Apr 2020 07:12:34 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94678 --- Comment #1 from Fei Yang --- crash log for test2.c: during RTL pass: expand foo.c: In function 'f2': foo.c:14:10: internal compiler error: in emit_move_insn, at expr.c:3815 14 | return svadd_m (*x, *y, 1); | ^~~~~~~~~~~~~~~~~~~ 0xd21797 emit_move_insn(rtx_def*, rtx_def*) ../../gcc-git/gcc/expr.c:3814 0xcf52cb copy_to_mode_reg(machine_mode, rtx_def*) ../../gcc-git/gcc/explow.c:634 0x11021f7 maybe_legitimize_operand ../../gcc-git/gcc/optabs.c:7283 0x1102caf maybe_legitimize_operands(insn_code, unsigned int, unsigned int, expand_operand*) ../../gcc-git/gcc/optabs.c:7415 0x1102d9b maybe_gen_insn(insn_code, unsigned int, expand_operand*) ../../gcc-git/gcc/optabs.c:7434 0x1103223 maybe_expand_insn(insn_code, unsigned int, expand_operand*) ../../gcc-git/gcc/optabs.c:7477 0x11032c3 expand_insn(insn_code, unsigned int, expand_operand*) ../../gcc-git/gcc/optabs.c:7508 0x10edec3 expand_vector_broadcast(machine_mode, rtx_def*) ../../gcc-git/gcc/optabs.c:419 0x1859ec3 aarch64_sve::function_expander::add_input_operand(insn_code, rtx_def*) ../../gcc-git/gcc/config/aarch64/aarch64-sve-builtins.cc:2790 0x185b1b3 aarch64_sve::function_expander::use_cond_insn(insn_code, unsigned int) ../../gcc-git/gcc/config/aarch64/aarch64-sve-builtins.cc:3078 0x185b753 aarch64_sve::function_expander::map_to_rtx_codes(rtx_code, rtx_co= de, int, unsigned int) ../../gcc-git/gcc/config/aarch64/aarch64-sve-builtins.cc:3224 0x18768d7 aarch64_sve::rtx_code_function::expand(aarch64_sve::function_expander&) con= st ../../gcc-git/gcc/config/aarch64/aarch64-sve-builtins-functions.h:2= 11 0x185b9fb aarch64_sve::function_expander::expand() ../../gcc-git/gcc/config/aarch64/aarch64-sve-builtins.cc:3281 0x185dcab aarch64_sve::expand_builtin(unsigned int, tree_node*, rtx_def*) ../../gcc-git/gcc/config/aarch64/aarch64-sve-builtins.cc:3569 0x17c0ceb aarch64_expand_builtin ../../gcc-git/gcc/config/aarch64/aarch64.c:13147 0xb3782f expand_builtin(tree_node*, rtx_def*, rtx_def*, machine_mode, int) ../../gcc-git/gcc/builtins.c:7736 0xd4039b expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) ../../gcc-git/gcc/expr.c:11132 0xd3338f expand_expr_real(tree_node*, rtx_def*, machine_mode, expand_modifi= er, rtx_def**, bool) ../../gcc-git/gcc/expr.c:8359 0xd28337 store_expr(tree_node*, rtx_def*, int, bool, bool) ../../gcc-git/gcc/expr.c:5755 0xd26d27 expand_assignment(tree_node*, tree_node*, bool) ../../gcc-git/gcc/expr.c:5514 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions.=