Skip to content

Commit b9edf42

Browse files
committed
Fix i586 tests
1 parent 423f68b commit b9edf42

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

ci/run.sh

+4
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,9 @@ set -ex
55
# FIXME(rust-lang/rust#45201) shouldn't need to specify one codegen unit
66
export RUSTFLAGS="$RUSTFLAGS -C codegen-units=1"
77

8+
# Tests are all super fast anyway, and they fault often enough on travis that
9+
# having only one thread increases debuggability to be worth it.
10+
export RUST_TEST_THREADS=1
11+
812
cargo test --target $TARGET
913
cargo test --release --target $TARGET

src/x86/sse.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -885,10 +885,10 @@ pub unsafe fn _MM_TRANSPOSE4_PS(row0: &mut f32x4, row1: &mut f32x4, row2: &mut f
885885
let tmp1 = _mm_unpackhi_ps(*row0, *row1);
886886
let tmp3 = _mm_unpackhi_ps(*row2, *row3);
887887

888-
mem::replace(row0, _mm_movelh_ps(tmp0, tmp2));
889-
mem::replace(row1,_mm_movehl_ps(tmp2, tmp0));
890-
mem::replace(row2, _mm_movelh_ps(tmp1, tmp3));
891-
mem::replace(row3, _mm_movehl_ps(tmp3, tmp1));
888+
*row0 = _mm_movelh_ps(tmp0, tmp2);
889+
*row1 = _mm_movehl_ps(tmp2, tmp0);
890+
*row2 = _mm_movelh_ps(tmp1, tmp3);
891+
*row3 = _mm_movehl_ps(tmp3, tmp1);
892892
}
893893

894894
#[allow(improper_ctypes)]

0 commit comments

Comments
 (0)