about summary refs log tree commit diff
path: root/example
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2020-08-08 16:32:03 +0200
committerbjorn3 <bjorn3@users.noreply.github.com>2020-08-08 16:32:03 +0200
commit49b7fac44313030da598146b11b61840fa5a5d8b (patch)
tree26f1d7d8b38ce63733403e83ee71b73602c64f0b /example
parentf79e8e8487e2b34875e351cac61e70455da0b1a2 (diff)
downloadrust-49b7fac44313030da598146b11b61840fa5a5d8b.tar.gz
rust-49b7fac44313030da598146b11b61840fa5a5d8b.zip
Enable simd insert and extract tests
Working since rust-lang/stdarch#876

Fixes #666
Diffstat (limited to 'example')
-rw-r--r--example/std_example.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/example/std_example.rs b/example/std_example.rs
index dee228a7d10..184b63e5d83 100644
--- a/example/std_example.rs
+++ b/example/std_example.rs
@@ -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);