This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/67815] Optimize const1 * copysign (const2, y) into copysign (const1 * const2, y) if const1 > 0 or -copysign (const1 * const2, y) if const1 < 0


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67815

--- Comment #3 from joseph at codesourcery dot com <joseph at codesourcery dot com> ---
Note that this should only be applied when the multiplication of the two 
constants can be folded to a single constant (thus, not for 
-frounding-math - HONOR_SIGN_DEPENDENT_ROUNDING - if the multiplication is 
inexact).


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]