dble intrinsic behavior

Steve Kargl sgk@troutmask.apl.washington.edu
Sat May 28 19:28:00 GMT 2005


On Sat, May 28, 2005 at 12:12:42PM -0700, Jerry DeLisle wrote:
> While checking intrinsics I was looking into the behavior of dble:
> 

(code snipped)

>           12
>    3.140000
>    12.0000000000000
>    3.14000010490417
> 
> This does not seem right to me.  It seems to be only doing a type 
> conversion rather than actually converting the internal to a kind=8. 

Jerry, you may already know about -fdump-parse-tree and 
-fdump-tree-original.  In particular, -fdump-tree-original
gives

  MAIN__ ()
  {
     static int4 i = 12;
     static real4 r = 3.1400001049041748046875e+0;
....
  {
    real8 D.469;

    D.469 = (real8) r;
    _gfortran_transfer_real (&D.469, 8);
  }



-- 
Steve



More information about the Fortran mailing list