[LLVMbugs] [Bug 1681] New: llc aborts with " Register class of operand and regclass of use don't agree!"

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Sep 18 14:07:33 PDT 2007


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

           Summary: llc aborts with "Register class of operand and regclass
                    of use don't agree!"
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Keywords: compile-fail
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: jlh at gmx.ch
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=1132)
 --> (http://llvm.org/bugs/attachment.cgi?id=1132)
Bitcode triggering the error

Software: linux-2.6/gentoo, LLVM 2.1 prerelease 1

When running "llc file.bc" (file is attached), I get the following output:

Register class of operand and regclass of use don't agree!
Operand = 0
Op->Val = 0x85f6918: f32,ch = LD_Fp32m 0x85f8230, 0x85f6670, 0x85f7118,
0x85f66d8, 0x85f6ae0
MI = UCOMISSrm  %reg1025
VReg = 1025
VReg RegClass     size = 4, align = 4
Expected RegClass size = 4, align = 4
Fatal error, aborting.
llc((anonymous namespace)::PrintStackTrace()+0x19)[0x8501759]
Aborted

I originally got this error on the final linking step in the process of
building POV-Ray 3.6.1 with LLVM (with link-time optimization enabled).  I then
reduced that case to this small test case.  For your convenience, here's the
human readable form:

define void @myfunc() {
        %zerodouble = add double 0.0, 0.0
        br label %label
label:
        %zerofloat = fptrunc double %zerodouble to float
        %cond = fcmp ogt float %zerofloat, 2.0
        br i1 %cond, label %label, label %label
}


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