Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

building error and warning #25

Open
yaozhongxiao opened this issue Feb 2, 2021 · 0 comments
Open

building error and warning #25

yaozhongxiao opened this issue Feb 2, 2021 · 0 comments

Comments

@yaozhongxiao
Copy link

version / revision Operating System Compiler & Version Compiler Flags CPU
std_simd::master Linux gcc (GCC) 11.0.0 20210119 (experimental) make test x86_64

Testcase

ninja/make build_tests

Actual Results

building pass without error

Expected Results

  1. building warning from _MaskImplBuiltin::_S_set
$workspace/cpp_libs/std-simd/tests/mask.cpp:124:4:   required from ‘static void Tests::operators_<M>::run() [with M = ⠶simd_mask<char, ⠶simd_abi::_VecBuiltin<32> >]’
$workspace/cpp_libs/std-simd/tests/virtest/vir/test.h:1015:33:   required from ‘int vir::test::detail::addTestInstantiations(const char*, vir::Typelist<Bs ...>) [with 
TestWrapper = Tests::operators_; Ts = {⠶simd_mask<long long int, ⠶simd_abi::_Scalar>, ⠶simd_mask<long long int, ⠶simd_abi::_VecBuiltin<16> >, ⠶simd_mask<long long int, 
⠶simd_abi::_VecBuiltin<24> >, ⠶simd_mask<long long int, ⠶simd_abi::_VecBuiltin<32> >, ⠶simd_mask<long int, ⠶simd_abi::_Scalar>, ⠶simd_mask<long int, ⠶simd_abi::_VecBuiltin<16> >, 
⠶simd_mask<long int, ⠶simd_abi::_VecBuiltin<24> >, ⠶simd_mask<long int, ⠶simd_abi::_VecBuiltin<32> >, ⠶simd_mask<long long unsigned int, ⠶simd_abi::_Scalar>, ⠶simd_mask<long long unsigned int, 
⠶simd_abi::_VecBuiltin<16> >, ⠶simd_mask<long long unsigned int, ⠶simd_abi::_VecBuiltin<24> >, ⠶simd_mask<long long unsigned int, ⠶simd_abi::_VecBuiltin<32> >, ⠶simd_mask<long unsigned int, 
⠶simd_abi::_Scalar>, ⠶simd_mask<long unsigned int, ⠶simd_abi::_VecBuiltin<16> >, ⠶simd_mask<long unsigned int, ⠶simd_abi::_VecBuiltin<24> >, ⠶simd_mask<long unsigned int, 
⠶simd_abi::_VecBuiltin<32> >, ⠶simd_mask<char, ⠶simd_abi::_Scalar>, ⠶simd_mask<char, ⠶simd_abi::_VecBuiltin<8> >, ⠶simd_mask<char, ⠶simd_abi::_VecBuiltin<16> >, ⠶simd_mask<char, 
⠶simd_abi::_VecBuiltin<24> >, ⠶simd_mask<char, ⠶simd_abi::_VecBuiltin<32> >, ⠶simd_mask<wchar_t, ⠶simd_abi::_Scalar>, ⠶simd_mask<wchar_t, ⠶simd_abi::_VecBuiltin<8> >, ⠶simd_mask<wchar_t, 
⠶simd_abi::_VecBuiltin<16> >, ⠶simd_mask<wchar_t, ⠶simd_abi::_VecBuiltin<24> >, ⠶simd_mask<wchar_t, ⠶simd_abi::_VecBuiltin<32> >}]’
$workspace/cpp_libs/std-simd/tests/mask.cpp:108:1:   required from here
$workspace/cpp_libs/std-simd/tests/../experimental/bits/simd_builtin.h:2853:29: warning: comparison of integer expressions of different signedness: ‘int’ and 
‘⠶integral_constant<long unsigned int, 31>::value_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  1. building error from _SimdImplBuiltin::_S_isfinite
    if we use the _SimdImplBuiltin::_S_isfinite directly, there is an building error from _S_isfinite
#workspace/cpp_libs/std-simd/tests/../experimental/bits/simd_builtin.h:2287:33: error: could not convert ‘((((__vector(16) int)__absn) <= ((__vector(16) int)__maxn)) ? (__vector(16) int){-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1} : (__vector(16) int){0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0})’ from ‘__vector(16) int’ to ‘std::experimental::parallelism_v2::_SimdImplBuiltin<std::experimental::parallelism_v2::simd_abi::_VecBltnBtmsk<64> >::_MaskMember<float>’ {aka ‘std::experimental::parallelism_v2::_SimdWrapper<bool, 16, void>’}
 2287 |         return (__absn <= __maxn);
      |                                 ^
      |                                 |
      |                                 __vector(16) int
#workspace/cpp_libs/std-simd/tests/../experimental/bits/simd_builtin.h: In instantiation of ‘static std::experimental::parallelism_v2::_SimdImplBuiltin<_Abi>::_MaskMember<_Tp> std::experimental::parallelism_v2::_SimdImplBuiltin<_Abi>::_S_isfinite(std::experimental::parallelism_v2::_SimdWrapper<_Tp, _Np>) [with _Tp = double; long unsigned int _Np = 8; _Abi = std::experimental::parallelism_v2::simd_abi::_VecBltnBtmsk<64>; std::experimental::parallelism_v2::_SimdImplBuiltin<_Abi>::_MaskMember<_Tp> = std::experimental::parallelism_v2::_SimdWrapper<bool, 8, void>]’:
#workspace/cpp_libs/std-simd/tests/../experimental/bits/simd_x86.h:3012:29:   required from ‘static std::experimental::parallelism_v2::_SimdImplX86<_Abi>::_MaskMember<_Tp> std::experimental::parallelism_v2::_SimdImplX86<_Abi>::_S_isfinite(std::experimental::parallelism_v2::_SimdWrapper<_Tp, _Np>) [with _Tp = double; long unsigned int _Np = 8; _Abi = std::experimental::parallelism_v2::simd_abi::_VecBltnBtmsk<64>; std::experimental::parallelism_v2::_SimdImplX86<_Abi>::_MaskMember<_Tp> = std::experimental::parallelism_v2::_SimdWrapper<bool, 8, void>]’
#workspace/cpp_libs/std-simd/tests/../experimental/bits/simd_math.h:1334:1:   required from ‘std::enable_if_t<is_floating_point_v<_Tp>, _R> std::experimental::parallelism_v2::isfinite(std::experimental::parallelism_v2::simd<_Tp, _Ap>) [with _Tp = double; _Abi = std::experimental::parallelism_v2::simd_abi::_VecBltnBtmsk<64>; <template-parameter-1-3> = {}; _R = std::experimental::parallelism_v2::simd_mask<double, std::experimental::parallelism_v2::simd_abi::_VecBltnBtmsk<64> >; std::enable_if_t<is_floating_point_v<_Tp>, _R> = std::experimental::parallelism_v2::simd_mask<double, std::experimental::parallelism_v2::simd_abi::_VecBltnBtmsk<64> >]’
#workspace/cpp_libs/std-simd/tests/math.cpp:159:2:   required from ‘static void Tests::fpclassify_<V>::run() [with V = std::experimental::parallelism_v2::simd<double, std::experimental::parallelism_v2::simd_abi::_VecBltnBtmsk<64> >]’
#workspace/cpp_libs/std-simd/tests/virtest/vir/test.h:1015:33:   required from ‘int vir::test::detail::addTestInstantiations(const char*, vir::Typelist<Bs ...>) [with TestWrapper = Tests::fpclassify_; Ts = {std::experimental::parallelism_v2::simd<float, std::experimental::parallelism_v2::simd_abi::_VecBltnBtmsk<64> >, std::experimental::parallelism_v2::simd<double, std::experimental::parallelism_v2::simd_abi::_VecBltnBtmsk<64> >}]’
#workspace/cpp_libs/std-simd/tests/math.cpp:125:1:   required from here
#workspace/cpp_libs/std-simd/tests/../experimental/bits/simd_builtin.h:2287:33: error: could not convert ‘((((__vector(8) long int)__absn) <= ((__vector(8) long int)__maxn)) ? (__vector(8) long int){-1, -1, -1, -1, -1, -1, -1, -1} : (__vector(8) long int){0, 0, 0, 0, 0, 0, 0, 0})’ from ‘__vector(8) long int’ to ‘std::experimental::parallelism_v2::_SimdImplBuiltin<std::experimental::parallelism_v2::simd_abi::_VecBltnBtmsk<64> >::_MaskMember<double>’ {aka ‘std::experimental::parallelism_v2::_SimdWrapper<bool, 8, void>’}
ninja: build stopped: subcommand failed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant