Skip to content

Commit 523bbba

Browse files
committed
Don't run test on missing architectures
1 parent 270a662 commit 523bbba

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/test_xsimd_api.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,7 @@ struct xsimd_api_integral_types_functions
372372
CHECK_EQ(extract(cr), r);
373373
}
374374

375+
#ifndef XSIMD_NO_SUPPORTED_ARCHITECTURE
375376
void test_bitwise_lshift_multiple()
376377
{
377378
constexpr auto Max = static_cast<value_type>(std::numeric_limits<value_type>::digits);
@@ -390,6 +391,7 @@ struct xsimd_api_integral_types_functions
390391
CHECK_EQ(shifted_cst.get(i), 1 << shifts.get(i));
391392
}
392393
}
394+
#endif
393395

394396
void test_bitwise_rshift()
395397
{
@@ -458,13 +460,15 @@ TEST_CASE_TEMPLATE("[xsimd api | integral types functions]", B, INTEGRAL_TYPES)
458460
Test.test_bitwise_lshift_single();
459461
}
460462

463+
#ifndef XSIMD_NO_SUPPORTED_ARCHITECTURE
461464
SUBCASE("bitwise_lshift_multiple")
462465
{
463466
XSIMD_IF_CONSTEXPR(xsimd::is_batch<B>::value)
464467
{
465468
Test.test_bitwise_lshift_multiple();
466469
}
467470
}
471+
#endif
468472

469473
SUBCASE("bitwise_rshift")
470474
{

0 commit comments

Comments
 (0)