]> git.lizzy.rs Git - rust.git/commitdiff
Enable simd insert and extract tests
authorbjorn3 <bjorn3@users.noreply.github.com>
Sat, 8 Aug 2020 14:32:03 +0000 (16:32 +0200)
committerbjorn3 <bjorn3@users.noreply.github.com>
Sat, 8 Aug 2020 14:32:03 +0000 (16:32 +0200)
Working since rust-lang/stdarch#876

Fixes #666

example/std_example.rs

index dee228a7d108c05f1307b235c065ee4144705818..184b63e5d833bbe267b83ef3a18f4cdd8a1bf590 100644 (file)
@@ -144,9 +144,8 @@ unsafe fn test_simd() {
     test_mm_cvtepi8_epi16();
     test_mm_cvtsi128_si64();
 
-    // FIXME(#666) implement `#[rustc_arg_required_const(..)]` support
-    //test_mm_extract_epi8();
-    //test_mm_insert_epi16();
+    test_mm_extract_epi8();
+    test_mm_insert_epi16();
 
     let mask1 = _mm_movemask_epi8(dbg!(_mm_setr_epi8(255u8 as i8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)));
     assert_eq!(mask1, 1);