https://gcc.gnu.org/bugzilla/show_bug.cgi?id=129037
Bug ID: 129037
Summary: [17 Regression] Recent change to fold sign bit
operations trips aarch64 testsuite failure
Product: gcc
Version: 17.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: law at gcc dot gnu.org
Target Milestone: ---
This change:
commit 4ecca2eba5a6932251248195cb4b2c348b240a01
Author: Igor Shevlyakov <[email protected]>
Date: Sun Nov 22 14:50:50 2026 -0800
match.pd: Fold sign-bit operations on reinterpreted floats [PR64897]
Code that works on the bits of a floating-point value clears, flips or
sets its sign bit through an integer of the same size:
(T)((I)x & ~signbit), (T)((I)x ^ signbit), (T)((I)x | signbit)
[ ... ]
Is triggering failures for
gcc: gcc.target/aarch64/sve/fneg-abs_4.c check-function-bodies negabs
gcc: gcc.target/aarch64/sve/fneg-abs_4.c check-function-bodies negabsf
This may just be a need to update the expected output. I haven't actually
looked.