Skip to content

Commit 4a2dac1

Browse files
committed
Rustfmt
1 parent 2ff3587 commit 4a2dac1

File tree

3 files changed

+2
-13
lines changed

3 files changed

+2
-13
lines changed

crates/core_arch/src/powerpc/altivec.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -2481,8 +2481,7 @@ mod tests {
24812481
7 * 256,
24822482
));
24832483
let b: vector_signed_short = transmute(i16x8::new(256, 256, 256, 256, 256, 256, 256, 256));
2484-
let c: vector_signed_short =
2485-
transmute(i16x8::new(0, 1, 2, 3, 4, 5, 6, i16::MAX - 1));
2484+
let c: vector_signed_short = transmute(i16x8::new(0, 1, 2, 3, 4, 5, 6, i16::MAX - 1));
24862485

24872486
let d = i16x8::new(0, 3, 6, 9, 12, 15, 18, i16::MAX);
24882487

crates/core_arch/src/x86/mmx.rs

+1-10
Original file line numberDiff line numberDiff line change
@@ -634,16 +634,7 @@ mod tests {
634634
unsafe fn test_mm_subs_pi8() {
635635
let a = _mm_setr_pi8(-100, 100, 0, 0, 0, 0, -5, 5);
636636
let b = _mm_setr_pi8(100, -100, i8::MIN, 127, -1, 1, 3, -3);
637-
let e = _mm_setr_pi8(
638-
i8::MIN,
639-
i8::MAX,
640-
i8::MAX,
641-
-127,
642-
1,
643-
-1,
644-
-8,
645-
8,
646-
);
637+
let e = _mm_setr_pi8(i8::MIN, i8::MAX, i8::MAX, -127, 1, -1, -8, 8);
647638
assert_eq_m64(e, _mm_subs_pi8(a, b));
648639
assert_eq_m64(e, _m_psubsb(a, b));
649640
}

crates/core_arch/src/x86/sse2.rs

-1
Original file line numberDiff line numberDiff line change
@@ -5229,7 +5229,6 @@ mod tests {
52295229

52305230
#[simd_test(enable = "sse2,mmx")]
52315231
unsafe fn test_mm_cvttpd_pi32() {
5232-
52335232
let a = _mm_setr_pd(5., 0.);
52345233
let r = _mm_cvttpd_pi32(a);
52355234
assert_eq_m64(r, _mm_setr_pi32(5, 0));

0 commit comments

Comments
 (0)