Skip to content

Commit

Permalink
Make the _mm_movemask_epi8 test a non palindrome
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn3 authored and gnzlbg committed Aug 2, 2019
1 parent 2dccd4e commit 933a5e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/core_arch/src/x86/sse2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4166,11 +4166,11 @@ mod tests {
let a = _mm_setr_epi8(
0b1000_0000u8 as i8, 0b0, 0b1000_0000u8 as i8, 0b01,
0b0101, 0b1111_0000u8 as i8, 0, 0,
0, 0, 0b1111_0000u8 as i8, 0b0101,
0, 0b1011_0101u8 as i8, 0b1111_0000u8 as i8, 0b0101,
0b01, 0b1000_0000u8 as i8, 0b0, 0b1000_0000u8 as i8,
);
let r = _mm_movemask_epi8(a);
assert_eq!(r, 0b10100100_00100101);
assert_eq!(r, 0b10100110_00100101);
}

#[simd_test(enable = "sse2")]
Expand Down

0 comments on commit 933a5e0

Please sign in to comment.