[LLVMbugs] [Bug 8867] New: Attempting uitofp from integer constant to fp128 causes assertion failure in APFloat.cpp:120

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Dec 27 23:11:40 PST 2010


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

           Summary: Attempting uitofp from integer constant to fp128
                    causes assertion failure in APFloat.cpp:120
           Product: libraries
           Version: 2.8
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Core LLVM classes
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: eligottlieb at gmail.com
                CC: llvmbugs at cs.uiuc.edu


When I construct a ConstantInt (though I'm actually using the C bindings) using
the LLVM 2.8 release libraries and then proceed to construct a UIToFP cast
using LLVMBuildUIToFP(builder,value,FP128Ty,"cast").  This results in receiving
the following failed assertion:

/usr/src/llvm-2.8/lib/Support/APFloat.cpp:120: void assertArithmeticOK(const
llvm::fltSemantics&): Assertion `semantics.arithmeticOK && "Compile-time
arithmetic does not support these semantics"' failed.

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