Skip to content

Commit

Permalink
Rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Amanieu committed Apr 23, 2020
1 parent fdd46e3 commit 2e0daef
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 13 deletions.
3 changes: 1 addition & 2 deletions crates/core_arch/src/powerpc/altivec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2481,8 +2481,7 @@ mod tests {
7 * 256,
));
let b: vector_signed_short = transmute(i16x8::new(256, 256, 256, 256, 256, 256, 256, 256));
let c: vector_signed_short =
transmute(i16x8::new(0, 1, 2, 3, 4, 5, 6, i16::MAX - 1));
let c: vector_signed_short = transmute(i16x8::new(0, 1, 2, 3, 4, 5, 6, i16::MAX - 1));

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

Expand Down
11 changes: 1 addition & 10 deletions crates/core_arch/src/x86/mmx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -634,16 +634,7 @@ mod tests {
unsafe fn test_mm_subs_pi8() {
let a = _mm_setr_pi8(-100, 100, 0, 0, 0, 0, -5, 5);
let b = _mm_setr_pi8(100, -100, i8::MIN, 127, -1, 1, 3, -3);
let e = _mm_setr_pi8(
i8::MIN,
i8::MAX,
i8::MAX,
-127,
1,
-1,
-8,
8,
);
let e = _mm_setr_pi8(i8::MIN, i8::MAX, i8::MAX, -127, 1, -1, -8, 8);
assert_eq_m64(e, _mm_subs_pi8(a, b));
assert_eq_m64(e, _m_psubsb(a, b));
}
Expand Down
1 change: 0 additions & 1 deletion crates/core_arch/src/x86/sse2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5229,7 +5229,6 @@ mod tests {

#[simd_test(enable = "sse2,mmx")]
unsafe fn test_mm_cvttpd_pi32() {

let a = _mm_setr_pd(5., 0.);
let r = _mm_cvttpd_pi32(a);
assert_eq_m64(r, _mm_setr_pi32(5, 0));
Expand Down

0 comments on commit 2e0daef

Please sign in to comment.