You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am going to initialize the ex::simd through the pure array, but with simd_abi::scalar, it failed.
Do I miss something? or this is forbidden if we choose simd_abi::scalar
cd ~/llvm-project/build
build/bin/llvm-lit -a build/runtimes/runtimes-x86_64-unknown-linux-gnu-bins/libcxx/test/std/experimental/simd/simd.reductions/hmax.pass.cpp
error log
/root/llvm-project/latest_build/build/include/c++/v1/experimental/simd:1764:12: error: no matching member function for call to '__load'
_Impl::__load(__s_, _Flags::template __apply<simd>(__mem));
~~~~~~~^~~~~~
/root/llvm-project/libcxx/test/std/experimental/simd/simd.reductions/hmax.pass.cpp:133:3: note: in instantiation of function template specialization 'std::experimental::simd<char, std::experimental::simd_abi::__scalar>::simd<char, std::experimental::element_aligned_tag, void>' requested here
ex::simd<char, ex::simd_abi::scalar>(arr, ex::element_aligned_tag());
^
/root/llvm-project/latest_build/build/include/c++/v1/__simd/abi/scalar.h:21:16: note: candidate template ignored: could not match '_Up *' against 'std::experimental::simd<char, std::experimental::simd_abi::__scalar>::_Storage' (aka '__simd_storage<char, simd_abi::__scalar>')
static _Simd __load(_Up* __mem, _Flags) noexcept {
^
1 error generated.
error: command failed with exit status: 1
The text was updated successfully, but these errors were encountered:
sorry, in my local it still reports some errors: (either char [1] or int [8])
my test code
int arr_int[8]{1,2,3,4,5,6};
ex::simd<int, ex::simd_abi::scalar>(arr_int, ex::element_aligned_tag());
error log
In file included from /root/llvm-project/libcxx/test/std/experimental/simd/simd.reductions/hmax.pass.cpp:16:
/root/llvm-project/really_build/build/include/c++/v1/experimental/simd:1753:12: error: no matching member function for call to '__load'
_Impl::__load(__s_, _Flags::template __apply<simd>(__mem));
~~~~~~~^~~~~~
/root/llvm-project/libcxx/test/std/experimental/simd/simd.reductions/hmax.pass.cpp:139:33: note: in instantiation of function template specialization 'std::experimental::simd<int, std::experimental::simd_abi::__scalar>::simd<int, std::experimental::element_aligned_tag, void>' requested here
int arr_int[8]{1,2,3,4,5,6}; ex::simd<int, ex::simd_abi::scalar>(arr_int, ex::element_aligned_tag());
^
/root/llvm-project/really_build/build/include/c++/v1/__simd/abi/scalar.h:21:15: note: candidate template ignored: couldn't infer template argument '_Flags'
static void __load(_Simd& __s, const _Up* __mem) noexcept {
^
1 error generated.
what happen
I am going to initialize the
ex::simd
through the pure array, but withsimd_abi::scalar
, it failed.Do I miss something? or this is forbidden if we choose
simd_abi::scalar
code paste:
reproduce
call the one of
func
in any test file, and under thegithub-ci.yml
command to test this simple file.https://github.com/plctlab/llvm-project/blob/libcxx-simd-dev/.gitlab-ci.yml#L16
like:
error log
The text was updated successfully, but these errors were encountered: