<html>
<head>
<base href="https://bugs.llvm.org/">
</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 11: _mm_cvtsi32_si64 on AARCH64 : error: invalid conversion between vector type '__m64'"
href="https://bugs.llvm.org/show_bug.cgi?id=48915">48915</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Clang 11: _mm_cvtsi32_si64 on AARCH64 : error: invalid conversion between vector type '__m64'
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>11.0
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>release blocker
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Backend: AArch64
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>socketpair@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>arnaud.degrandmaison@arm.com, llvm-bugs@lists.llvm.org, smithp352@googlemail.com, Ties.Stuij@arm.com
</td>
</tr></table>
<p>
<div>
<pre>See <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1921494">https://bugzilla.redhat.com/show_bug.cgi?id=1921494</a>
$ clang --version
clang version 11.0.0 (Fedora 11.0.0-2.fc33)
Target: aarch64-unknown-linux-gnu
Thread model: posix
Works OK on X86.
Does not work on AARCH64 (!):
==============
#include <emmintrin.h>
int main() {
return _mm_cvtsi32_si64(42)[0];
}
================
$ clang qwe.c
In file included from qwe.c:1:
In file included from /usr/lib64/clang/11.0.0/include/emmintrin.h:13:
In file included from /usr/lib64/clang/11.0.0/include/xmmintrin.h:13:
/usr/lib64/clang/11.0.0/include/mmintrin.h:50:12: error: invalid conversion
between vector type '__m64' (vector of 1 'long long' value) and integer type
'int' of different size
return (__m64)__builtin_ia32_vec_init_v2si(__i, 0);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</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>