<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:chandlerc@gmail.com" title="Chandler Carruth <chandlerc@gmail.com>"> <span class="fn">Chandler Carruth</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED WORKSFORME - confusing return from _mm_extract_epi8() in smmintrin.h"
href="http://llvm.org/bugs/show_bug.cgi?id=17300">bug 17300</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEW
</td>
<td>RESOLVED
</td>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>chandlerc@gmail.com
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>WORKSFORME
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED WORKSFORME - confusing return from _mm_extract_epi8() in smmintrin.h"
href="http://llvm.org/bugs/show_bug.cgi?id=17300#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED WORKSFORME - confusing return from _mm_extract_epi8() in smmintrin.h"
href="http://llvm.org/bugs/show_bug.cgi?id=17300">bug 17300</a>
from <span class="vcard"><a class="email" href="mailto:chandlerc@gmail.com" title="Chandler Carruth <chandlerc@gmail.com>"> <span class="fn">Chandler Carruth</span></a>
</span></b>
<pre>(In reply to <a href="show_bug.cgi?id=17300#c0">comment #0</a>)
<span class="quote">> _mm_extract_epi8() function in smmintrin.h returns unsigned char instead of
> int.
> It is confusing because the corresponding PEXTRB instruction returns ***zero
> extended*** int/__int64 value.
>
> In smmintrin.h of GNU C "(unsigned char)" is redundant:
>
> extern __inline int __attribute__((__gnu_inline__, __always_inline__,</span >
Uh... The return type is right here and it is int. The cast you refer to is in
the definition not the signature.
Does using this intrinsic produce machine code other than what you would
expect?</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>