<html>
<head>
<base href="http://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 --- - [x86,avx] LLVM ERROR: Cannot select: 0x3741970: v2f64 = X86ISD::VBROADCAST 0x373f750"
href="http://llvm.org/bugs/show_bug.cgi?id=21050">21050</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[x86,avx] LLVM ERROR: Cannot select: 0x3741970: v2f64 = X86ISD::VBROADCAST 0x373f750
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</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>LLVM Codegen
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>ahatanak@gmail.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>Created <span class=""><a href="attachment.cgi?id=13081" name="attach_13081" title="test case">attachment 13081</a> <a href="attachment.cgi?id=13081&action=edit" title="test case">[details]</a></span>
test case
I'm seeing this error when I compile the attached test case:
$ llc -mcpu=core-avx2 ~/test1.ll -o -
.section __TEXT,__text,regular,pure_instructions
.macosx_version_min 10, 10
LLVM ERROR: Cannot select: 0x3741970: v2f64 = X86ISD::VBROADCAST 0x373f750
[ORD=2] [ID=14]
0x373f750: f64,ch = load 0x3710100, 0x373f120, 0x373f540<LD8[ConstantPool]>
[ORD=2] [ID=12]
0x373f120: i64 = X86ISD::WrapperRIP 0x373ef10 [ID=10]
0x373ef10: i64 = TargetConstantPool<double -1.000000e+00> 0 [ID=8]
0x373f540: i64 = undef [ID=2]
In function: main
It looks like it's trying to match the pattern at X86InstrSSE.td:5294, but it
fails because the loadf64 node has multiple uses:
def : Pat<(v2f64 (X86VBroadcast (loadf64 addr:$src))),
If comment out the call to @foo1, llc runs to completion.</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>