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 other/63847] FAIL: c-c++-common/cilk-plus/AN/builtin_fn_custom.c execution test on i?86 with -fpic


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63847

--- Comment #1 from UroÅ Bizjak <ubizjak at gmail dot com> ---
Ah, excess FP precision issue at:

  double x, yy, array3[NUMBER], array4[NUMBER];
  double max_value = 0.000, min_value = 0.000, add_value, mul_value = 1.00;

...

  if (x != max_value)
    return 1;

Breakpoint 1, main () at
/home/uros/gcc-svn/trunk/gcc/testsuite/c-c++-common/cilk-plus/AN/builtin_fn_custom.c:62
62        if (x != max_value)

   0x080485fb <+302>:   cmp    $0x64,%eax
   0x080485fe <+305>:   jne    0x80485de <main()+273>
=> 0x08048600 <+307>:   fucomip %st(1),%st
   0x08048602 <+309>:   fstp   %st(0)
   0x08048604 <+311>:   jp     0x8048614 <main()+327>

  R7: Valid   0x3ffffffffefffffffdffffffac37ffffffdaffffffc37dffffffb000
+0.9909090909090909616     
=>R6: Valid   0x3ffffffffefffffffdffffffac37ffffffdaffffffc37dffffffae26
+0.9909090909090909359     
  R5: Empty   0x3ffffffff1ffffffd3ffffffd562ffffff92ffffffab7effffff865c
  R4: Empty   0x3ffffffff1ffffffd3ffffffd562ffffff92ffffffab7effffff865c
  R3: Empty   0x00000000000000000000
  R2: Empty   0x00000000000000000000
  R1: Empty   0x00000000000000000000
  R0: Empty   0x00000000000000000000

These tests need either checks with tolerances or -ffloat-store.

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