about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2024-01-30 08:10:44 +0100
committerRalf Jung <post@ralfj.de>2024-02-19 10:17:33 +0100
commit059138cd5835bb40decb35aef9909c762f6450d2 (patch)
treebec702650b03bd1beaadce8fb0837791417d03c1 /src
parent010f029c905ffeb01ad88288b2cf50efe65b23ae (diff)
downloadrust-059138cd5835bb40decb35aef9909c762f6450d2.tar.gz
rust-059138cd5835bb40decb35aef9909c762f6450d2.zip
enable from_bitmask_vector test on little-endian targets
Diffstat (limited to 'src')
-rw-r--r--src/tools/miri/tests/pass/portable-simd.rs14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/tools/miri/tests/pass/portable-simd.rs b/src/tools/miri/tests/pass/portable-simd.rs
index 57d0b6a87b2..d4b3ab8ac09 100644
--- a/src/tools/miri/tests/pass/portable-simd.rs
+++ b/src/tools/miri/tests/pass/portable-simd.rs
@@ -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),