[llvm-bugs] [Bug 46799] New: FP flags differ on same operation (<) in different contexts
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Jul 21 17:19:18 PDT 2020
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: unassignedclangbugs at nondot.org
Reporter: tydeman at tybor.com
CC: blitzrakete at gmail.com, dgregor at apple.com,
erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
richard-llvm at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200722/f5e1685b/attachment-0001.html>
More information about the llvm-bugs
mailing list