Bug ID: 30715
           Summary: Legalization code assumes only integer typed ops may
                    need expanding
           Product: libraries
           Version: 3.9
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Common Code Generator Code
    Classification: Unclassified

Created attachment 17456
Test case that causes the failure

When a floating point type needs to be legalized by expanding, the code in
DAGTypeLegalizer::ExpandOp_BITCAST causes an assert in
DAGTypeLegalizer::IntegerToVector to trip because it assumes that the input
operand is integral. But there is a type that may need to be legalized by
expanding (namely ppcf128 is a pair of doubles).

To reproduce:
llc < legalize-bug.ll 
    .abiversion 2
    .file    "<stdin>"
void llvm::DAGTypeLegalizer::IntegerToVector(llvm::SDValue, unsigned int,
llvm::SmallVectorImpl<llvm::SDValue>&, llvm::EVT): Assertion
`Op.getValueType().isInteger()' failed.
<... rest of stack trace omitted for brevity ...>

You are receiving this mail because:
You are on the CC list for the bug.
llvm-bugs mailing list

Reply via email to