https://bugs.llvm.org/show_bug.cgi?id=46799

            Bug ID: 46799
           Summary: FP flags differ on same operation (<) in different
                    contexts
           Product: clang
           Version: 10.0
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected]

It appears that the two '<' here with the same operands:
  long double x = NAN;
  int i;
  i = x < x;
  if( x < x )...;
Also this pair:
  i = x < 0.L;
  if( x < 0.L )...;
raise different floating-point exception flags; perhaps invalid versus none.
I believe this problem applies to all compares that involve a NaN.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to