This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/14396] [gfortran] Intrinsic SQRT and CSQRT give wrong answer with COMPLEX argument.


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-03-03 04:56 -------
With 20040208, I get the correct result (but this on powerpc-apple-darwin):
[zhivago2:~/src/gccPRs] pinskia% ./a.out
CSQRT(BVC)= (   2.000000    ,   1.000000    )  SQRT(BVC)= (   2.000000    ,   1.000000    )
CSQRT(BVC) - SQRT(BVC) (   0.000000    ,   0.000000    )

It looks right to me:
  bvc = __complex__ (3.0e+0, 4.0e+0);
  avc = csqrtf (bvc) - csqrtf (bvc);

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code
   Target Milestone|---                         |tree-ssa


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14396


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]