[llvm-bugs] [Bug 36300] New: [x86] Invalid operand expansion for MLOAD

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Feb 8 07:33:02 PST 2018


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

            Bug ID: 36300
           Summary: [x86] Invalid operand expansion for MLOAD
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: X86
          Assignee: unassignedbugs at nondot.org
          Reporter: aivchenk at gmail.com
                CC: llvm-bugs at lists.llvm.org

$ cat test.ll

declare <16 x float> @llvm.masked.load.v16f32.p0v16f32(<16 x float>*, i32, <16
x i1>, <16 x float>)

define void @foo() local_unnamed_addr {
  %tmp = call <16 x float> @llvm.masked.load.v16f32.p0v16f32(<16 x float>*
nonnull undef, i32 4, <16 x i1> undef, <16 x float> undef)
  ret void
}

$ llc test.ll -mcpu=core-avx2
...
llc:  llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp:968: bool
llvm::DAGTypeLegalizer::PromoteIntegerOperand(llvm::SDNode*, unsigned int):
Assertion `Res.getValueType() == N->getValueType(0) && N->getNumValues() == 1
&& "Invalid operand expansion"' failed.
llvm::DAGTypeLegalizer::PromoteIntegerOperand(llvm::SDNode*, unsigned int) 
llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp:967:0
#10 0x0000000003486599 llvm::DAGTypeLegalizer::run() 
llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp:309:0
#11 0x000000000348b6b1 llvm::SelectionDAG::LegalizeTypes() 
llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp:1187:0
#12 0x0000000003438267 llvm::SelectionDAGISel::CodeGenAndEmitDAG()

-- 
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/20180208/a4a7b7a5/attachment-0001.html>


More information about the llvm-bugs mailing list