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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to