[llvm-bugs] [Bug 48915] New: Clang 11: _mm_cvtsi32_si64 on AARCH64 : error: invalid conversion between vector type '__m64'

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jan 27 21:25:39 PST 2021


https://bugs.llvm.org/show_bug.cgi?id=48915

            Bug ID: 48915
           Summary: Clang 11: _mm_cvtsi32_si64 on AARCH64 : error: invalid
                    conversion between vector type '__m64'
           Product: libraries
           Version: 11.0
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: Backend: AArch64
          Assignee: unassignedbugs at nondot.org
          Reporter: socketpair at gmail.com
                CC: arnaud.degrandmaison at arm.com,
                    llvm-bugs at lists.llvm.org, smithp352 at googlemail.com,
                    Ties.Stuij at arm.com

See https://bugzilla.redhat.com/show_bug.cgi?id=1921494

$ 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);
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210128/aee29c32/attachment-0001.html>


More information about the llvm-bugs mailing list