Skip to content

Commit

Permalink
Attempt to work around MSVC ICE
Browse files Browse the repository at this point in the history
  • Loading branch information
Epixu committed Feb 7, 2025
1 parent 4deb99e commit 3511006
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
18 changes: 9 additions & 9 deletions test/Main.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,18 +69,18 @@ using namespace Langulus;
(Vector<::std::int64_t, S>), \
VECTORS_REAL(S)

#define VECTORS_UNSIGNED(S) (Vector<::std::uint8_t, S>)
/*(Vector<::std::uint8_t, S>), \
(Vector<::std::uint16_t, S>)
#define VECTORS_UNSIGNED(S) \
(Vector<::std::uint8_t, S>),\
(Vector<::std::uint16_t, S>),\
(Vector<::std::uint32_t, S>),\
(Vector<::std::uint64_t, S>),\
(Vector<Byte, S>)
(Vector<Byte, S>), \
(Vector<char8_t, S>), \
(Vector<char16_t, S>), \
(Vector<char32_t, S>), \
(Vector<wchar_t, S>)*/
(Vector<wchar_t, S>)

#define VECTORS_INT(S) \
#define VECTORS_INT(S) \
(Vector<::std::int8_t, S>), \
(Vector<::std::int16_t, S>), \
(Vector<::std::int32_t, S>), \
Expand All @@ -95,9 +95,9 @@ using namespace Langulus;
(Vector<char32_t, S>), \
(Vector<wchar_t, S>)

#define VECTORS_ALL(S) \
VECTORS_UNSIGNED(S)
//VECTORS_SIGNED(S),
#define VECTORS_ALL(S) \
VECTORS_UNSIGNED(S), \
VECTORS_SIGNED(S)

using uint = unsigned int;
template<class T>
Expand Down
5 changes: 4 additions & 1 deletion test/Multiply/TestMul-VV.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ TEMPLATE_TEST_CASE("Vector * Vector", "[multiply]"
InitOne(y, -5);
}

//WHEN("Multiplied as constexpr (with saturation)") {
//WHEN("Multiplied as constexpr (with saturation)") {
// these scopes cause MSVC to ICE on x86 v141 SSE2 builds
// (yes, this one build and in this one file for some reason, go figure)
// (p.s. screw MSVC! gives me grief from the start!)
static_assert(SIMD::Multiply<true>(T {0}, T {5}) == T {0});
//}

Expand Down

0 comments on commit 3511006

Please sign in to comment.