Skip to content

Commit

Permalink
Auto merge of #3284 - RalfJung:little-endian-bitmask, r=RalfJung
Browse files Browse the repository at this point in the history
enable from_bitmask_vector test on little-endian targets

Blocked on rust-lang/portable-simd#380 propagating to the rustc repo
  • Loading branch information
bors committed Feb 19, 2024
2 parents 010f029 + 059138c commit f743422
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions src/tools/miri/tests/pass/portable-simd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -268,15 +268,11 @@ fn simd_mask() {
}

// This used to cause an ICE. It exercises simd_select_bitmask with an array as input.
if cfg!(target_endian = "little") {
// FIXME this test currently fails on big-endian:
// <https://github.com/rust-lang/portable-simd/issues/379>
let bitmask = u8x4::from_array([0b00001101, 0, 0, 0]);
assert_eq!(
mask32x4::from_bitmask_vector(bitmask),
mask32x4::from_array([true, false, true, true]),
);
}
let bitmask = u8x4::from_array([0b00001101, 0, 0, 0]);
assert_eq!(
mask32x4::from_bitmask_vector(bitmask),
mask32x4::from_array([true, false, true, true]),
);
let bitmask = u8x8::from_array([0b01000101, 0, 0, 0, 0, 0, 0, 0]);
assert_eq!(
mask32x8::from_bitmask_vector(bitmask),
Expand Down

0 comments on commit f743422

Please sign in to comment.