Skip to content

Commit

Permalink
Enable simd insert and extract tests
Browse files Browse the repository at this point in the history
Working since rust-lang/stdarch#876

Fixes #666
  • Loading branch information
bjorn3 committed Aug 8, 2020
1 parent f79e8e8 commit 49b7fac
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions example/std_example.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 49b7fac

Please sign in to comment.