Re: [fortran,patch] Support for IEEE underflow control on x86/x86_64

2014-07-09 Thread FX
Updated patch, after Uros’ comments (except testing for != 0 in the testcase; I’d rather keep the existing > 0 test). Bootstrapped and regtested on x86_64-apple-darwin13, tested by Uros on alpha. Given that the patch is mostly x86 and alpha-specific, and Uros has approved it from that point of v

Re: [fortran,patch] Support for IEEE underflow control on x86/x86_64

2014-07-04 Thread Uros Bizjak
On Thu, Jul 3, 2014 at 3:02 PM, Uros Bizjak wrote: > On Thu, Jul 3, 2014 at 2:43 PM, FX wrote: >> Here’s an updated patch, providing support for underflow control in the >> IEEE_ARITHMETIC module, for x86/x86_64 targets and alpha-glibc. >> >> Bootstrapped and regtested on x86_64-apple-darwin13,

Re: [fortran,patch] Support for IEEE underflow control on x86/x86_64

2014-07-03 Thread Uros Bizjak
On Thu, Jul 3, 2014 at 2:43 PM, FX wrote: > Here’s an updated patch, providing support for underflow control in the > IEEE_ARITHMETIC module, for x86/x86_64 targets and alpha-glibc. > > Bootstrapped and regtested on x86_64-apple-darwin13, tested by Uros on alpha. The testcase still needs: ! { d

Re: [fortran,patch] Support for IEEE underflow control on x86/x86_64

2014-07-03 Thread FX
Here’s an updated patch, providing support for underflow control in the IEEE_ARITHMETIC module, for x86/x86_64 targets and alpha-glibc. Bootstrapped and regtested on x86_64-apple-darwin13, tested by Uros on alpha. OK to commit? underflow.ChangeLog Description: Binary data underflow.diff Des

Re: [fortran,patch] Support for IEEE underflow control on x86/x86_64

2014-07-03 Thread Uros Bizjak
On Thu, Jul 3, 2014 at 12:26 PM, FX wrote: >> I'd suggest to name this fie ieee_underflow_1.f90 for consistency. > > In fact, since the directory is called ieee/, I think I’ll rename the others > so they don’t all start with ieee_ > > >> BTW: underflow control also works on alpha, using following

Re: [fortran,patch] Support for IEEE underflow control on x86/x86_64

2014-07-03 Thread FX
> I'd suggest to name this fie ieee_underflow_1.f90 for consistency. In fact, since the directory is called ieee/, I think I’ll rename the others so they don’t all start with ieee_ > BTW: underflow control also works on alpha, using following code: Could you test the attached libgfortran/confi

Re: [fortran,patch] Support for IEEE underflow control on x86/x86_64

2014-07-03 Thread Uros Bizjak
On Thu, Jul 3, 2014 at 11:42 AM, FX wrote: >> (I don't think -O0 is needed, but have to check with a testsuite run.) > > On x86_64-apple-darwin, -O0 or -O1 are needed: at -O2 my “use_real” call is > optimized out anyway, and the division simplified at compile time. You can mark variables with:

Re: [fortran,patch] Support for IEEE underflow control on x86/x86_64

2014-07-03 Thread Uros Bizjak
On Thu, Jul 3, 2014 at 11:25 AM, Uros Bizjak wrote: >> The attached patch provides support for underflow control in the >> IEEE_ARITHMETIC module, for x86/x86_64 targets (our main user base). >> Bootstrapped and regtested on x86_64-apple-darwin13. Comes with a testcase. > Index: gcc/testsuite/g

Re: [fortran,patch] Support for IEEE underflow control on x86/x86_64

2014-07-03 Thread FX
> (I don't think -O0 is needed, but have to check with a testsuite run.) On x86_64-apple-darwin, -O0 or -O1 are needed: at -O2 my “use_real” call is optimized out anyway, and the division simplified at compile time. FX

Re: [fortran,patch] Support for IEEE underflow control on x86/x86_64

2014-07-03 Thread Uros Bizjak
On Thu, Jul 3, 2014 at 11:06 AM, FX wrote: > Hi all, > > The attached patch provides support for underflow control in the > IEEE_ARITHMETIC module, for x86/x86_64 targets (our main user base). > Bootstrapped and regtested on x86_64-apple-darwin13. Comes with a testcase. +int +support_fpu_underfl