[LLVMbugs] [Bug 22376] New: Negative zero misoptimized

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jan 28 15:01:32 PST 2015


            Bug ID: 22376
           Summary: Negative zero misoptimized
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Scalar Optimizations
          Assignee: unassignedbugs at nondot.org
          Reporter: sunil_srivastava at playstation.sony.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

The following example fails with –O2 (passes at -O1)

extern "C"  int printf(const char *, ...);
int signbit(double d) {return *((long long *)&d)<0;}
double m0 = -0.;
int main() {
  if ( m0 == 0) {
    if  (signbit(m0) != 0)

It is a regression since r225660, which was for Bug 17713.

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/20150128/e456b2b9/attachment.html>

More information about the llvm-bugs mailing list