Skip to content

Commit

Permalink
vsimd: simd128: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Nugine committed Oct 6, 2022
1 parent 5725cf5 commit f6ea651
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/vsimd/src/simd128.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1818,12 +1818,15 @@ mod tests {
fn u8x16_any_zero() {
fn test(a: [u8; 16], expected: bool) {
let a = V128::from_bytes(a);
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
if let Some(s) = SSE41::detect() {
assert_eq!(s.u8x16_any_zero(a), expected);
}
#[cfg(any(target_arch = "arm", target_arch = "aarch64"))]
if let Some(s) = NEON::detect() {
assert_eq!(s.u8x16_any_zero(a), expected);
}
#[cfg(target_arch = "wasm32")]
if let Some(s) = WASM128::detect() {
assert_eq!(s.u8x16_any_zero(a), expected);
}
Expand Down

1 comment on commit f6ea651

@Nugine
Copy link
Owner Author

@Nugine Nugine commented on f6ea651 Oct 6, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Workaround for rust-lang/rust#102738

Please sign in to comment.