Fix i586 tests

This commit is contained in:
Alex Crichton
2017-10-11 17:33:41 -07:00
parent 5a028d329e
commit 9a440a3eb0
2 changed files with 8 additions and 4 deletions
+4
View File
@@ -5,5 +5,9 @@ set -ex
# FIXME(rust-lang/rust#45201) shouldn't need to specify one codegen unit
export RUSTFLAGS="$RUSTFLAGS -C codegen-units=1"
# Tests are all super fast anyway, and they fault often enough on travis that
# having only one thread increases debuggability to be worth it.
export RUST_TEST_THREADS=1
cargo test --target $TARGET
cargo test --release --target $TARGET
+4 -4
View File
@@ -885,10 +885,10 @@ pub unsafe fn _MM_TRANSPOSE4_PS(row0: &mut f32x4, row1: &mut f32x4, row2: &mut f
let tmp1 = _mm_unpackhi_ps(*row0, *row1);
let tmp3 = _mm_unpackhi_ps(*row2, *row3);
mem::replace(row0, _mm_movelh_ps(tmp0, tmp2));
mem::replace(row1,_mm_movehl_ps(tmp2, tmp0));
mem::replace(row2, _mm_movelh_ps(tmp1, tmp3));
mem::replace(row3, _mm_movehl_ps(tmp3, tmp1));
*row0 = _mm_movelh_ps(tmp0, tmp2);
*row1 = _mm_movehl_ps(tmp2, tmp0);
*row2 = _mm_movelh_ps(tmp1, tmp3);
*row3 = _mm_movehl_ps(tmp3, tmp1);
}
#[allow(improper_ctypes)]