Re: [PATCH] Implement a -ftrapping-math/-fsignaling-nans TODO in match.pd.

2024-07-17 Thread Richard Biener
On Thu, Jul 18, 2024 at 12:54 AM Roger Sayle wrote: > > I've been investigating some (float)i == CST optimizations for match.pd, > and noticed there's already a TODO comment in match.pd that's relatively > easy to implement. When CST is a NaN, we only need to worry about > exceptions with flag_tr

[PATCH] Implement a -ftrapping-math/-fsignaling-nans TODO in match.pd.

2024-07-17 Thread Roger Sayle
I've been investigating some (float)i == CST optimizations for match.pd, and noticed there's already a TODO comment in match.pd that's relatively easy to implement. When CST is a NaN, we only need to worry about exceptions with flag_trapping_math, and equality/inequality tests for sNaN only behave