Skip to content

Commit d752ad8

Browse files
committed
Auto merge of #3284 - RalfJung:little-endian-bitmask, r=RalfJung
enable from_bitmask_vector test on little-endian targets Blocked on rust-lang/portable-simd#380 propagating to the rustc repo
2 parents 28abd3f + 20846d4 commit d752ad8

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

tests/pass/portable-simd.rs

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -268,15 +268,11 @@ fn simd_mask() {
268268
}
269269

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

0 commit comments

Comments
 (0)