[LLVMbugs] [Bug 23778] New: Llc crashes if CodeGen/PowerPC/crbit-asm.ll test is compiled with -O1 or -O0

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Jun 7 09:43:03 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=23778

            Bug ID: 23778
           Summary: Llc crashes if CodeGen/PowerPC/crbit-asm.ll test is
                    compiled with -O1 or -O0
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: PowerPC
          Assignee: unassignedbugs at nondot.org
          Reporter: llvm.mail.list at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

The test relies on availability of the CR bits feature and the
PPC::CRBITRCRegClass register class. CRBITRCRegClass is added when the CR bits
feature is on (see PPCTargetLowering constructor), while the CR bits feature
itself is available for -O2 or greater only (see function computeFSAdditions in
lib/Target/PowerPC/PPCTargetMachine.cpp).

Compiling the CodeGen/PowerPC/crbit-asm.ll test with -O0 or -O1 crashes llc.
Llc tries to copy to a register of type i1, which is illegal if CR bits is off.
This signals the assertion "Copying to an illegal type!" in the getCopyToParts
function (lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp).

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150607/892c7a3d/attachment.html>


More information about the llvm-bugs mailing list