[LLVMbugs] [Bug 3066] New: Assertion hit with simple store into 4xfloat vector.

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Nov 13 15:55:42 PST 2008


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

           Summary: Assertion hit with simple store into 4xfloat vector.
           Product: libraries
           Version: 2.4
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Common Code Generator Code
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: marejde at gmail.com
                CC: llvmbugs at cs.uiuc.edu


I hit the following assertion:

llvm-2.4/include/llvm/CodeGen/ValueTypes.h:364: unsigned int
llvm::MVT::getSizeInBits() const: Assertion `isExtended() && "MVT has no known
size!"' failed.

when trying to jit a module with the following IR:

@a_global_variable = weak global <4 x float>            ; <<4 x float>*>
[#uses=1]

define void @main() {
entry:
        store <4 x float> < float 1.000000e+00, float 0.000000e+00, float
0.000000e+00, float 1.000000e+00 >, <4 x float>* @a_global_variable
        ret void undef
}

in the following way (error checks etc removed):

execution_engine = llvm::ExecutionEngine::create(module);
llvm::Function *f = module->getFunction("main");
main_function = (void (*) ()) execution_engine->getPointerToFunction(f);

FWIW, I didn't hit the assertion with 2.3. Instead, the program crashed. Since
2.4 got released a couple of days ago I didn't investigate it further with 2.3.


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