From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2F6FE3858C60; Thu, 10 Feb 2022 15:05:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2F6FE3858C60 From: "vries at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/104489] New: nvptx, sm_53: internal compiler error: in gen_rtx_SUBREG, at emit-rtl.cc:1022 Date: Thu, 10 Feb 2022 15:05:20 +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: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries 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 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: Thu, 10 Feb 2022 15:05:21 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D104489 Bug ID: 104489 Summary: nvptx, sm_53: internal compiler error: in gen_rtx_SUBREG, at emit-rtl.cc:1022 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: vries at gcc dot gnu.org Target Milestone: --- With patch: ... $ git diff diff --git a/gcc/config/nvptx/nvptx.h b/gcc/config/nvptx/nvptx.h index edffd088b15a..8d389da679e4 100644 --- a/gcc/config/nvptx/nvptx.h +++ b/gcc/config/nvptx/nvptx.h @@ -32,7 +32,7 @@ /* Default needs to be in sync with default for misa in nvptx.opt. We add a default here to work around a hard-coded sm_30 default in nvptx-as. */ -#define ASM_SPEC "%{misa=3D*:-m %*; :-m sm_35}" +#define ASM_SPEC "%{misa=3D*:-m %*; :-m sm_53}" #define TARGET_CPU_CPP_BUILTINS() nvptx_cpu_cpp_builtins () diff --git a/gcc/config/nvptx/nvptx.opt b/gcc/config/nvptx/nvptx.opt index 93a678b63367..c89e658c82e0 100644 --- a/gcc/config/nvptx/nvptx.opt +++ b/gcc/config/nvptx/nvptx.opt @@ -72,7 +72,7 @@ Enum(ptx_isa) String(sm_80) Value(PTX_ISA_SM80) ; Default needs to be in sync with default in ASM_SPEC in nvptx.h. misa=3D -Target RejectNegative ToLower Joined Enum(ptx_isa) Var(ptx_isa_option) Init(PTX_ISA_SM35) +Target RejectNegative ToLower Joined Enum(ptx_isa) Var(ptx_isa_option) Init(PTX_ISA _SM53) Specify the version of the ptx ISA to use. Enum ... we run into: ... during RTL pass: expand /home/vries/nvptx/trunk/source-gcc/libgcc/libgcc2.c: In function =E2=80=98_= _mulhc3=E2=80=99: /home/vries/nvptx/trunk/source-gcc/libgcc/libgcc2.c:1959:10: internal compi= ler error: in gen_rtx_SUBREG, at emit-rtl.cc:1022 1959 | ac =3D a * c; | ^ 0xd9c1b7 gen_rtx_SUBREG(machine_mode, rtx_def*, poly_int<1u, unsigned long>) /home/vries/nvptx/trunk/source-gcc/gcc/emit-rtl.cc:1022 0xd9c22f gen_lowpart_SUBREG(machine_mode, rtx_def*) /home/vries/nvptx/trunk/source-gcc/gcc/emit-rtl.cc:1038 0xe0ef52 expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) /home/vries/nvptx/trunk/source-gcc/gcc/expr.cc:10677 0xe06316 expand_expr_real(tree_node*, rtx_def*, machine_mode, expand_modifi= er, rtx_def**, bool) /home/vries/nvptx/trunk/source-gcc/gcc/expr.cc:8736 0xde4ef9 expand_expr /home/vries/nvptx/trunk/source-gcc/gcc/expr.h:301 0xe0783c expand_expr_real_2(separate_ops*, rtx_def*, machine_mode, expand_modifier) /home/vries/nvptx/trunk/source-gcc/gcc/expr.cc:9070 0xc69dec expand_gimple_stmt_1 /home/vries/nvptx/trunk/source-gcc/gcc/cfgexpand.cc:3967 0xc6a047 expand_gimple_stmt /home/vries/nvptx/trunk/source-gcc/gcc/cfgexpand.cc:4028 0xc7282a expand_gimple_basic_block /home/vries/nvptx/trunk/source-gcc/gcc/cfgexpand.cc:6069 0xc74cba execute /home/vries/nvptx/trunk/source-gcc/gcc/cfgexpand.cc:6795 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. make[4]: *** [Makefile:501: _mulhc3.o] Error 1 ...=