summaryrefslogtreecommitdiffstats
path: root/vendor/packed_simd_2/tests
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:13 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:13 +0000
commit218caa410aa38c29984be31a5229b9fa717560ee (patch)
treec54bd55eeb6e4c508940a30e94c0032fbd45d677 /vendor/packed_simd_2/tests
parentReleasing progress-linux version 1.67.1+dfsg1-1~progress7.99u1. (diff)
downloadrustc-218caa410aa38c29984be31a5229b9fa717560ee.tar.xz
rustc-218caa410aa38c29984be31a5229b9fa717560ee.zip
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/packed_simd_2/tests')
-rw-r--r--vendor/packed_simd_2/tests/endianness.rs10
1 files changed, 3 insertions, 7 deletions
diff --git a/vendor/packed_simd_2/tests/endianness.rs b/vendor/packed_simd_2/tests/endianness.rs
index 31fb7073a..da12c2338 100644
--- a/vendor/packed_simd_2/tests/endianness.rs
+++ b/vendor/packed_simd_2/tests/endianness.rs
@@ -1,7 +1,7 @@
#[cfg(target_arch = "wasm32")]
use wasm_bindgen_test::*;
-use packed_simd::*;
+use packed_simd_2::*;
use std::{mem, slice};
#[cfg_attr(not(target_arch = "wasm32"), test)]
@@ -57,9 +57,7 @@ fn endian_load_and_stores() {
8, 9, 10, 11, 12, 13, 14, 15,
);
let mut y: [i16; 8] = [0; 8];
- x.write_to_slice_unaligned(unsafe {
- slice::from_raw_parts_mut(&mut y as *mut _ as *mut i8, 16)
- });
+ x.write_to_slice_unaligned(unsafe { slice::from_raw_parts_mut(&mut y as *mut _ as *mut i8, 16) });
let e: [i16; 8] = if cfg!(target_endian = "little") {
[256, 770, 1284, 1798, 2312, 2826, 3340, 3854]
@@ -68,9 +66,7 @@ fn endian_load_and_stores() {
};
assert_eq!(y, e);
- let z = i8x16::from_slice_unaligned(unsafe {
- slice::from_raw_parts(&y as *const _ as *const i8, 16)
- });
+ let z = i8x16::from_slice_unaligned(unsafe { slice::from_raw_parts(&y as *const _ as *const i8, 16) });
assert_eq!(z, x);
}