[LLVMbugs] [Bug 22974] New: SelectionDAGBuilder assertion failure from inline asm

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Mar 21 06:39:48 PDT 2015


            Bug ID: 22974
           Summary: SelectionDAGBuilder assertion failure from inline asm
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Common Code Generator Code
          Assignee: unassignedbugs at nondot.org
          Reporter: jmuizelaar at mozilla.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

The following code:

int a, b, c, d;
double e;
void fn1() {
  asm("" : "=r"(a), "=&r"(b), "=&r"(c), "=&r"(d), "=&r"(e) : "4"(e));

gives the following assertion failure when built with 'clang -cc1 -triple
thumbv7-apple-ios8.1.0 -emit-obj -x c++ reduc.cpp'

clang: ../lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp:398: void
getCopyToParts(llvm::SelectionDAG&, llvm::SDLoc, llvm::SDValue, llvm::SDValue*,
unsigned int, llvm::MVT, const llvm::Value*, llvm::ISD::NodeType): Assertion
`(PartVT.isInteger() || PartVT == MVT::x86mmx) && ValueVT.isInteger() &&
"Unknown mismatch!"' failed.

This is reduced from

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/20150321/c1d1821a/attachment.html>

More information about the llvm-bugs mailing list