From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 52C4A384AB72; Thu, 16 May 2024 09:14:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 52C4A384AB72 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1715850878; bh=ffYpTT9P1k6ecHakc6dAL8yuFwDjfJpTL7awfqRpkg4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=JvrA+0q1mzqE57KfhlqNYGn6Lw7nKCeh+m0jQ4L1SqrE5i2Oj93LQKVW9f8lj9Q9H en4EgCDnrIoMXTrZdaFypLEaeekSb9SfsdOwZXcZsJCDImaI1ltpnDDcrTCBiL9DvB PmTpL+H3NjN2MFPziiv8rOSRTIl2KdjW46vvPFMI= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/115115] [12/13/14/15 Regression] highway-1.0.7 wrong _mm_cvttps_epi32() constant fold Date: Thu, 16 May 2024 09:14:38 +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: 14.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia 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: 12.4 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D115115 --- Comment #6 from Andrew Pinski --- It depends on if you consider a float to int conversion or not. For (long long)float . The value if the float was out of range is unspecified so returning one value or another is both valid. So the question is it corresponding to float to integer conversion in c or exactly what the instruction does. The later has implications across the bo= ard.=