This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/16292] Test power.f90 fails on irix6.5 for complex**real
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Jul 2004 06:38:46 -0000
- Subject: [Bug fortran/16292] Test power.f90 fails on irix6.5 for complex**real
- References: <20040630055310.16292.billingd@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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