<html>
<head>
<base href="https://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 --- - wrong feature suggested when using AVX maskstore intrinsic"
href="https://llvm.org/bugs/show_bug.cgi?id=26258">26258</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>wrong feature suggested when using AVX maskstore intrinsic
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</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>Frontend
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>spatel+llvm@rotateright.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>It would be better if the error message gave me the correct advice the first
time. :)
$ ./clang -v
clang version 3.9.0 (trunk 258513) (llvm/trunk 258512)
Target: x86_64-apple-darwin15.2.0
Thread model: posix
$ cat juke.c
#include <immintrin.h>
void juke(float *f, __m128i mask, __m128 v) {
_mm_maskstore_ps(f, mask, v);
}
$ ./clang -O1 juke.c -S
juke.c:4:3: error: always_inline function '_mm_maskstore_ps' requires target
feature 'sse4.2', but would be inlined into function 'juke' that is compiled
without support for 'sse4.2'
_mm_maskstore_ps(f, mask, v);
^
1 error generated.
$ ./clang -O1 juke.c -S -msse4.2
juke.c:4:3: error: always_inline function '_mm_maskstore_ps' requires target
feature 'avx', but would be inlined into function 'juke' that is compiled
without support for 'avx'
_mm_maskstore_ps(f, mask, v);
^
1 error generated.</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>