<html>
<head>
<base href="https://bugs.llvm.org/">
</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 - AVX-512: Unable to copy EFLAGS physical register!"
href="https://bugs.llvm.org/show_bug.cgi?id=38803">38803</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>AVX-512: Unable to copy EFLAGS physical register!
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>7.0
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</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>-New Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>mgorny@gentoo.org
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=20817" name="attach_20817" title="tab.cpp">attachment 20817</a> <a href="attachment.cgi?id=20817&action=edit" title="tab.cpp">[details]</a></span>
tab.cpp
We've got a bug report from one of our users attempting to build Chromium using
clang. The build is failing for him with the following error message:
fatal error: error in backend: Unable to copy EFLAGS physical register!
x86_64-pc-linux-gnu-clang++: error: clang frontend command failed with exit
code 70 (use -v to see invocation)
I'm attaching a minimal test case prepared by Sergei Trofimovich:
// $ clang++ -march=skylake-avx512 -O2 tab.cpp
// fatal error: error in backend: Unable to copy EFLAGS physical register!
bool a();
int b, c;
float d;
float fn2() {
int e = a();
double f = e ? 0.75f : 0;
if (c)
d = e ? 0 : b;
return f;
}
I was able to reproduce the issue with today's LLVM+Clang trunk.</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>