From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7567F383E82D; Mon, 29 Jun 2020 15:00:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7567F383E82D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1593442826; bh=EWmyZSA3yP1NdPj/K2ol6FalE1F5DSDdxTxjr8UzPZ8=; h=From:To:Subject:Date:From; b=x7VUQeQGGqBb6Bp8Mf89wNGoOGML4YNNEST1+BJ3R0ftSQk0RRdwJpO3nH4dyzmos Nwkz97pwQxG9gP/CJAXNIMLZmrRW8zlH17XJ4ph3bFlszZm+PMvdsSpHJeoo1CZYKl X886EeNxnmrEqoIz7tcmbriACveJSsW53pr+/9JQ= From: "nsz at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/95966] New: soft float operations are not tail called Date: Mon, 29 Jun 2020 15:00:26 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 10.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: nsz 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: Mon, 29 Jun 2020 15:00:26 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95966 Bug ID: 95966 Summary: soft float operations are not tail called Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: nsz at gcc dot gnu.org Target Milestone: --- i'd expect this to be a tail call into the soft float add operation on soft float targets: fp_t foo(fp_t a, fp_t b) { return a + b; } e.g. on x86 with 'typedef __float128 fp_t' the generated code is foo: sub rsp, 8 call __addtf3 add rsp, 8 ret on aarch64 with 'typedef long double fp_t' the generated code is foo: stp x29, x30, [sp, -16]! mov x29, sp bl __addtf3 ldp x29, x30, [sp], 16 ret i see similar code on other softfp targets.=