From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6AD213858C54; Tue, 21 Mar 2023 07:19:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6AD213858C54 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1679383159; bh=P20NiDHG2fbT+t1BIy7GsSdm6V3YfDdWNXx1oWk4YQU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=oEVuEOu18xSup0lvxQv6X+BuF0YU5woXPqI9Uq/H9TwSJqNmmy6mJ6+rPMCU7gutK t0S8xJ0o1jwNMF6L4ohxNnci+bvjj3y551rzv55TqgFyDZlTlJvmWNvanTEeTcwNDW 9ZAgD5Pycic1iW0kEGAxFFr3v78XPSXDwul45Rmg= From: "crazylht at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug d/109221] std.math.floor, core.math.ldexp, std.math.poly poor inlining Date: Tue, 21 Mar 2023 07:19:18 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: d X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: crazylht at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ibuclaw at gdcproject dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D109221 Hongtao.liu changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |crazylht at gmail dot com --- Comment #5 from Hongtao.liu --- (In reply to Andrew Pinski from comment #4) > With -ffast-math -mfpmath=3D387,sse (or -mavx512f instead of -mfpmath=3D3= 87 as > there is a avx512f instruction too) added, ldexp gets inlined. Note, vscaless accept a float32 operand for exp which is int32 in ldexpf, t= here maybe some precision loss to convert an int32 to float32, that's why Ofast = is needed here.=