From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 11AB0381DCE1; Tue, 17 Mar 2020 02:22:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 11AB0381DCE1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1584411720; bh=qVwaJZBKNXwV4JQLkP8Rk4Kl4Nz86RXvl/mVOwPb2tM=; h=From:To:Subject:Date:From; b=XsXA2ZYnO2CRXZISoxEQCzZIZfl2eKAZKceKxMjhFjST4NSCdFKbXvNB0JzK2NnPA gRegdNEcZyVxVxBoK4you1NJTj10x29EaJwIpDK3LjgkXH9NdiJPu7Yi5bebOl+Qv5 n40tF5Y/PIwp8O4QSRYddFCUeY6ebNv0uWPuD5nY= From: "duanbo3 at huawei dot com" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyBjLzk0MjAxXSBOZXc6IGFhcmNoNjTvvJpJQ0UgaW4gdGlu?= =?UTF-8?B?eSBjb2RlIG1vZGVsIGZvciBpbHAzMg==?= Date: Tue, 17 Mar 2020 02:21:59 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 10.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: duanbo3 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone 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 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, 17 Mar 2020 02:22:00 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94201 Bug ID: 94201 Summary: aarch64=EF=BC=9AICE in tiny code model for ilp32 Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: duanbo3 at huawei dot com Target Milestone: --- Target: aarch64 Created attachment 48048 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D48048&action=3Dedit mcmodel_tiny_for_ilp32.patch hello I find an ICE when testing GCC10.0 on aarch64 at -mabi=3Dilp32 -fPIC=20 -mcmodel=3Dtiny: Simple test case --- extern int bar (void *); extern long long a;=20 int foo (void) { a=3D1; return bar ((void *)bar); } --- GCC version: gcc version 10.0.1 20200312 (experimental) Runcommand: gcc new_test.c -mabi=3Dilp32 -fPIC -mcmodel=3Dtiny -S -o poc.s Result: ./new_test.c: In function 'foo': ./new_test.c:14:1: error: unrecognizable insn: (insn 11 10 12 2 (set (reg:SI 0 x0) (unspec:DI [ (symbol_ref:SI ("bar") [flags 0x41] ) ] UNSPEC_GOTTINYPIC)) "./new_test.c":13:10 -1 (expr_list:REG_EQUAL (symbol_ref:SI ("bar") [flags 0x41] ) (nil))) during RTL pass: vregs ./new_test.c:14:1: internal compiler error: in extract_insn, at recog.c:2294 0x62858b _fatal_insn(char const*, rtx_def const*, char const*, int, char const*) ../.././gcc/rtl-error.c:108 0x6285b7 _fatal_insn_not_found(rtx_def const*, char const*, int, char const= *) ../.././gcc/rtl-error.c:116 0xc9aa7f extract_insn(rtx_insn*) ../.././gcc/recog.c:2294 0x9c8917 instantiate_virtual_regs_in_insn ../.././gcc/function.c:1607 0x9c8917 instantiate_virtual_regs ../.././gcc/function.c:1977 0x9c8917 execute ../.././gcc/function.c:2026=