Re: Issue with __builtin_remainder expansion on i386

2014-09-29 Thread FX
> The __builtin_remainderf on x86 expands to x87 fprem1 instruction [1]. > According to the table in [1], +inf is not handled, and generates > division-by-zero exception. > > IMO, we have to add "&& flag_finite_math_only" to expander enable > condition of remainder{sf,df,xf}3 expanders in i386.md

Re: Issue with __builtin_remainder expansion on i386

2014-09-29 Thread Uros Bizjak
Hello! > I have just submitted a patch emitting some new floating-point code from the > Fortran front-end, > improving our IEEE support there: > https://gcc.gnu.org/ml/gcc-patches/2014-09/msg02444.html > > However, in one of the cases where we emit a call to __builtin_remainderf(), > we get wro

Issue with __builtin_remainder expansion on i386

2014-09-26 Thread FX
Hi all, I have just submitted a patch emitting some new floating-point code from the Fortran front-end, improving our IEEE support there: https://gcc.gnu.org/ml/gcc-patches/2014-09/msg02444.html However, in one of the cases where we emit a call to __builtin_remainderf(), we get wrong code gene