On 7/3/24 12:08, Xi Ruoyao wrote: > On Fri, 2024-06-28 at 17:53 -0700, Vineet Gupta wrote: >> I was also hoping to get __builtin_inf() done but unforutnately it >> requires little more rtl foo/bar to implement a tri-modal return. > Hmm do we really need to care the symbol? The generic __builtin_isinf > does not care the symbol anyway: https://godbolt.org/z/bnnGf3a38 and the > standards only require a non-zero return value if the input is infinite > (positive or negative).
Not sure what you mean: are you saying the current flags based implementation doesn't return tri-modal val. I'm writing the code based on man page for isinf which says following. isinf(x) returns 1 if x is positive infinity, and -1 if x is negative infinity. -Vineet