[LLVMbugs] [Bug 12958] New: _mm_cvtss_si32 generates incorrect code with _MM_SET_ROUNDING_MODE

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat May 26 09:18:18 PDT 2012


http://llvm.org/bugs/show_bug.cgi?id=12958

             Bug #: 12958
           Summary: _mm_cvtss_si32 generates incorrect code with
                    _MM_SET_ROUNDING_MODE
           Product: clang
           Version: trunk
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: yottui at yahoo.co.jp
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 8651
  --> http://llvm.org/bugs/attachment.cgi?id=8651
testcase

I'm using llvm r157516 and clang r157511 as 64-bit compiler.
The compiler optimizer generates incorrect code with attached source file.

The attached testcase outputs 12.
But my expecting result is 11.

Compile the attached source file using the following command:

clang++ -O testcase.cpp

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list