[LLVMbugs] [Bug 1688] New: Assertion failed: (APInt::tcCompare(dividend, divisor, partsCount) >= 0)

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Sep 19 22:26:44 PDT 2007


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

           Summary: Assertion failed: (APInt::tcCompare(dividend, divisor,
                    partsCount) >= 0)
           Product: new-bugs
           Version: unspecified
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: major
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: mark+llvm.org at bdash.net.nz
                CC: llvmbugs at cs.uiuc.edu


Compiling the following code in a file named test.cpp:

double intPow10() {
     long double result = 10.0;
     return static_cast<double>(1.0 / result);
 }


with the command:
llvm-g++ -Os -c test.cpp

Results in:
Assertion failed: (APInt::tcCompare(dividend, divisor, partsCount) >= 0),
function divideSignificand, file
/Volumes/Data/Home/Documents/Source/SVN/llvm-project/llvm/lib/Support/APFloat.cpp,
line 578.
test.cpp: In function ‘double intPow10()’:
test.cpp:1: internal compiler error: Abort trap
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://llvm.org/bugs> for instructions.

This is using LLVM and llvm-gcc from r42159 of trunk on Mac OS X.


-- 
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