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 middle-end/17603] [4.0 Regression] cpowf and cpowl give wrong results


------- Additional Comments From pcarlini at suse dot de  2004-09-28 15:44 -------
In fact, builtins are not directly responsible.
This trivial, pure C, testcase:

#include <complex.h>
#include <stdio.h>

int main()
{
  long double complex b, a, r;

  b = -1;
  a = 0.5;
  r = cpowl(b, a);

  printf("%Lg, %Lg\n", creall(r), cimagl(r));
  
  return 0;
}

Suffices to show the problem on x86_64:
3.69315e-4664, 0

instead of the expected (3.3 and 3.4 are ok -> *not* a glibc problem!):
-2.71051e-20, 1

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.0 Regression] Cpowf and  |[4.0 Regression] cpowf and
                   |cpowl builtins broken       |cpowl give wrong results


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


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