<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - SelectionDAGBuilder assertion failure from inline asm"
href="https://llvm.org/bugs/show_bug.cgi?id=22974">22974</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>SelectionDAGBuilder assertion failure from inline asm
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Common Code Generator Code
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>jmuizelaar@mozilla.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>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
<a href="https://dxr.mozilla.org/mozilla-central/source/js/public/Conversions.h#350">https://dxr.mozilla.org/mozilla-central/source/js/public/Conversions.h#350</a></pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>