[llvm-bugs] [Bug 40701] New: clang-cl requires SVML intrinsics for VS2019 compatibility

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Feb 12 03:57:45 PST 2019


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

            Bug ID: 40701
           Summary: clang-cl requires SVML intrinsics for VS2019
                    compatibility
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: neumann at imt.uni-luebeck.de
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org,
                    neeilans at live.com, richard-llvm at metafoo.co.uk

with VS 2019 SVML intrinsic "svmlintrin.h" are included by immintrin.h.

As such clang-cl needs to support SVML intrinsics to be compatible with VS2019.

Small Code example: 

#include <immintrin.h>
#include <array>
#include <iostream>

int main()
{
    using Vector = std::array<double, 4>;
    Vector MyData;
    Vector SinData;
    Vector CosData;

    MyData = { 0.0, 1.31, -3.21, 0.51};
    *(__m256d*)(SinData.data()) = _mm256_sincos_pd((__m256d*)CosData.data(),
*(__m256d*)(MyData.data()));

    for (auto elem : SinData)
    {
        std::cout << elem << '\t';
    }
    std::cout << '\n';
    for (auto elem : CosData)
    {
        std::cout << elem << '\t';
    }
    std::system("pause");
    return 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/20190212/8ce2047f/attachment.html>


More information about the llvm-bugs mailing list