Skip to content

Commit 0658f77

Browse files
Add missing test case for batch_bool exclusive or
This would have caught #1158
1 parent fd6295a commit 0658f77

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/test_batch_bool.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,10 @@ struct batch_bool_test
381381
INFO("operator&");
382382
CHECK_BATCH_EQ(bool_g.half & bool_g.ihalf, bool_g.all_false);
383383
}
384+
{
385+
INFO("operator^");
386+
CHECK_BATCH_EQ(bool_g.half ^ bool_g.all_true, bool_g.ihalf);
387+
}
384388
// free function version
385389
{
386390
INFO("bitwise_not");
@@ -394,6 +398,10 @@ struct batch_bool_test
394398
INFO("bitwise_and");
395399
CHECK_BATCH_EQ(xsimd::bitwise_and(bool_g.half, bool_g.ihalf), bool_g.all_false);
396400
}
401+
{
402+
INFO("bitwise_xor");
403+
CHECK_BATCH_EQ(xsimd::bitwise_xor(bool_g.half, bool_g.all_true), bool_g.ihalf);
404+
}
397405
}
398406

399407
void test_update_operations() const

0 commit comments

Comments
 (0)