Skip to content

Commit

Permalink
Swap lanes tested on miri
Browse files Browse the repository at this point in the history
  • Loading branch information
calebzulawski committed Aug 7, 2024
1 parent 9f7fec8 commit a49f77e
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions crates/test_helpers/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -539,15 +539,17 @@ macro_rules! test_lanes {
#[cfg_attr(target_arch = "wasm32", wasm_bindgen_test::wasm_bindgen_test)];
lanes_1 1;
lanes_2 2;
lanes_3 3; // test one non-power-of-2 length on miri
lanes_3 3;

lanes_6 6;
);

#[cfg(not(miri))] // Miri intrinsic implementations are uniform and larger tests are sloooow
$crate::test_lanes_helper!(
#[cfg_attr(target_arch = "wasm32", wasm_bindgen_test::wasm_bindgen_test)];
lanes_4 4;
lanes_5 5;
lanes_6 6;

lanes_7 7;
lanes_8 8;
lanes_9 9;
Expand Down Expand Up @@ -633,14 +635,16 @@ macro_rules! test_lanes_panic {
lanes_1 1;
lanes_2 2;
lanes_3 3;
lanes_4 4;
lanes_5 5;

lanes_6 6;
);

#[cfg(not(miri))] // Miri intrinsic implementations are uniform and larger tests are sloooow
$crate::test_lanes_helper!(
#[should_panic];
lanes_6 6;
lanes_4 4;
lanes_5 5;

lanes_7 7;
lanes_8 8;
lanes_9 9;
Expand Down

0 comments on commit a49f77e

Please sign in to comment.