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/16292] Test power.f90 fails on irix6.5 for complex**real


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-07-01 06:38 -------
hmm,   
  two = 2.0e+0;
  T.1 = COMPLEX_EXPR <two, 0.0>;
  T.2 = cpowf (c, T.1);
  c = T.2;

maybe cpowf does not work at all on this target or it is excepting a different ABI.
Could you test this C code and show what the output is as this is what the fortran code does.
#include <math.h>
#include <complex.h>
#include <stdio.h>

int main()
{
  _Complex float t, t1;
  t = 2 + 3.0fi;
  t1 = cpowf (t, 2);
  printf ("%f\t%f\n", crealf (t1),  cimagf (t1));
}

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code


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


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