<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 --- - Cannot select: intrinsic %llvm.spu.si.sf"
href="http://llvm.org/bugs/show_bug.cgi?id=15333">15333</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Cannot select: intrinsic %llvm.spu.si.sf
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>3.2
</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>alexander@jesner.eu
</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>It seems, the following code cannot be compiled:
void main() {
int N = 100;
double f[N];
}
<span class="quote">> clang -std=c99 -c test.c -o test.a</span >
fatal error: error in backend: Cannot select: intrinsic %llvm.spu.si.sf
changing N to `const int` will make the program work. This makes sense.
I don't know what the C99 Standard says on this, but if using a non-const is
not valid, at least the error message should be more "legible".
For comparison: `gcc -std=c99 -Wall test.c` does not complain at all if N is
non-const and produces a working binary.
More information can be found on StackOverflow:
<a href="http://stackoverflow.com/questions/15023592/llvm-cannot-select-intrinsic-llvm-spu-si-sf">http://stackoverflow.com/questions/15023592/llvm-cannot-select-intrinsic-llvm-spu-si-sf</a>
My Clang version:
Ubuntu clang version 3.2-1~exp5ubuntu2 (tags/RELEASE_32/final) (based on LLVM
3.2)
Target: x86_64-pc-linux-gnu
Thread model: posix</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>