<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 --- - LLVM ERROR: Cannot select: 0x3aafd10: ch = brind 0x3a59270, 0x3aaf9e0 [ORD=3] [ID=3]"
href="http://llvm.org/bugs/show_bug.cgi?id=22859">22859</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>LLVM ERROR: Cannot select: 0x3aafd10: ch = brind 0x3a59270, 0x3aaf9e0 [ORD=3] [ID=3]
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</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>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>hjl.tools@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu, michael.m.kuperstein@intel.com
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>[hjl@gnu-6 bin]$ cat /tmp/x.ll
define i8 @test1() nounwind ssp {
entry:
%0 = select i1 undef, i8* blockaddress(@test1, %bb), i8* blockaddress(@test1,
%bb6) ; <i8*> [#uses=1]
indirectbr i8* %0, [label %bb, label %bb6]
bb: ; preds = %entry
ret i8 1
bb6: ; preds = %entry
ret i8 2
}
[hjl@gnu-6 bin]$ ./llc -mtriple=x86_64-linux-gnux32 -O2 < /tmp/x.ll
.text
.file "<stdin>"
LLVM ERROR: Cannot select: 0x3aafd10: ch = brind 0x3a59270, 0x3aaf9e0 [ORD=3]
[ID=3]
0x3aaf9e0: i32 = X86ISD::Wrapper 0x3aaff30 [ID=2]
0x3aaff30: i32 = TargetBlockAddress<@test1, %bb6> 0 [ID=1]
In function: test1
[hjl@gnu-6 bin]$
Since x32 programs run in the 64-bit mode, there is no 32-bit indirect
branch. X32 should lower 32-bit indirect branch by loading the destination
of indirect branch into a 32-bit register first, which is zero-extended to
64 bits by hardware, and perform indirect branch via 64-bit register.</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>