Skip to content

Commit

Permalink
Remove cardinal limits
Browse files Browse the repository at this point in the history
  • Loading branch information
ita-sc committed Oct 29, 2024
1 parent c33662d commit d6a888c
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ using test_types = eve::test::wides<tts::types<double, std::int64_t, std::uint64
TTS_CASE_TPL("Check compress copy behavior", simd_types_for_compress<test_types>)
<typename T>(tts::type<T>) {
using e_t = kumi::tuple<std::int8_t, eve::element_type_t<T>, double>;
compress_copy_tst(eve::as<eve::wide<e_t, simd_type_cardinal_for_compress_tuple<T>>> {},
compress_copy_tst(eve::as<eve::wide<e_t, typename T::cardinal_type>> {},
eve::compress_copy_scalar);
};
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ using test_types = eve::test::wides<tts::types<std::int16_t, std::uint16_t, std:
TTS_CASE_TPL("Check compress copy behavior", simd_types_for_compress<test_types>)
<typename T>(tts::type<T>) {
using e_t = kumi::tuple<std::int8_t, eve::element_type_t<T>, double>;
compress_copy_tst(eve::as<eve::wide<e_t, simd_type_cardinal_for_compress_tuple<T>>> {},
compress_copy_tst(eve::as<eve::wide<e_t, typename T::cardinal_type>> {},
eve::compress_copy_scalar);
};
3 changes: 1 addition & 2 deletions test/unit/api/compress/compress_copy_simd_tuple.large.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@ using test_types = eve::test::wides<tts::types<double, std::int64_t, std::uint64
TTS_CASE_TPL("Check compress copy behavior", simd_types_for_compress<test_types>)
<typename T>(tts::type<T>) {
using e_t = kumi::tuple<std::int8_t, eve::element_type_t<T>, double>;
compress_copy_tst(eve::as<eve::wide<e_t, simd_type_cardinal_for_compress_tuple<T>>> {},
eve::compress_copy_simd);
compress_copy_tst(eve::as<eve::wide<e_t, typename T::cardinal_type>> {}, eve::compress_copy_simd);
};
3 changes: 1 addition & 2 deletions test/unit/api/compress/compress_copy_simd_tuple.small.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,5 @@
TTS_CASE_TPL("Check compress copy behavior", simd_types_for_compress<eve::test::simd::all_types>)
<typename T>(tts::type<T>) {
using e_t = kumi::tuple<std::int8_t, eve::element_type_t<T>, double>;
compress_copy_tst(eve::as<eve::wide<e_t, simd_type_cardinal_for_compress_tuple<T>>> {},
eve::compress_copy_simd);
compress_copy_tst(eve::as<eve::wide<e_t, typename T::cardinal_type>> {}, eve::compress_copy_simd);
};
3 changes: 1 addition & 2 deletions test/unit/api/compress/compress_copy_tuple.large.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@ using test_types = eve::test::wides<tts::types<double, std::int64_t, std::uint64
TTS_CASE_TPL("Check compress copy behavior", simd_types_for_compress<test_types>)
<typename T>(tts::type<T>) {
using e_t = kumi::tuple<std::int8_t, eve::element_type_t<T>, double>;
compress_copy_tst(eve::as<eve::wide<e_t, simd_type_cardinal_for_compress_tuple<T>>> {},
eve::compress_copy);
compress_copy_tst(eve::as<eve::wide<e_t, typename T::cardinal_type>> {}, eve::compress_copy);
};
3 changes: 1 addition & 2 deletions test/unit/api/compress/compress_copy_tuple.small.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@ using test_types = eve::test::wides<tts::types<std::int16_t, std::uint16_t, std:
TTS_CASE_TPL("Check compress copy behavior", simd_types_for_compress<test_types>)
<typename T>(tts::type<T>) {
using e_t = kumi::tuple<std::int8_t, eve::element_type_t<T>, double>;
compress_copy_tst(eve::as<eve::wide<e_t, simd_type_cardinal_for_compress_tuple<T>>> {},
eve::compress_copy);
compress_copy_tst(eve::as<eve::wide<e_t, typename T::cardinal_type>> {}, eve::compress_copy);
};
7 changes: 0 additions & 7 deletions test/unit/api/compress/compress_test_filter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,6 @@ template<typename Type> struct rvv_compress_filter
#ifdef SPY_SIMD_IS_RISCV_FIXED_RVV
template<typename types_to_filter>
using simd_types_for_compress = tts::filter<rvv_compress_filter, types_to_filter>::type;

template<typename T>
using simd_type_cardinal_for_compress_tuple =
std::conditional_t<T::cardinal_type::value <= eve::expected_cardinal_v<double> * 2,
typename T::cardinal_type,
typename eve::expected_cardinal_t<double>>;
#else
template<typename types_to_filter> using simd_types_for_compress = types_to_filter;
template<typename T> using simd_type_cardinal_for_compress_tuple = typename T::cardinal_type;
#endif

0 comments on commit d6a888c

Please sign in to comment.