<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 --- - Clang -target i686-none-linux-android -mstackrealign -O1 crashes in RAGreedy::evictInterference"
href="http://llvm.org/bugs/show_bug.cgi?id=22320">22320</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Clang -target i686-none-linux-android -mstackrealign -O1 crashes in RAGreedy::evictInterference
</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>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>LLVM Codegen
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>java4ada@yahoo.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>Compile the enclosed file with clang built from trunk r226918 crashes after
emitting errors about exceeding physical registers
$ clang -target i686-none-linux-android -mstackrealign -O1 -c x.i
.....
h264_cabac-df4a33.i:2598:9: error: inline assembly requires more registers than
available
"movzbl ""(%4)"" , ""%0"" \n\t"
"mov ""%2"" , ""%3"...
^
h264_cabac-df4a33.i:2598:9: error: inline assembly requires more registers than
available
clang: /s/llvm/llvm/lib/CodeGen/RegAllocGreedy.cpp:811: void
{anonymous}::RAGreedy::evictInterference(llvm::LiveInterval&, unsigned int,
llvm::SmallVectorImpl<unsigned int>&): Assertion
`(ExtraRegInfo[Intf->reg].Cascade < Cascade || VirtReg.isSpillable() <
Intf->isSpillable()) && "Cannot decrease cascade number, illegal eviction"'
failed.
...
It doesn't crash when either 1) compile without any optimization, or 2) compile
without specifying -mstackrealign</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>