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: unassignedclangb...@nondot.org
          Reporter: tyde...@tybor.com
                CC: blitzrak...@gmail.com, dgre...@apple.com,
                    erik.pilking...@gmail.com, llvm-bugs@lists.llvm.org,
                    richard-l...@metafoo.co.uk

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
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to