From fd4cf83d42bb908b1dec3fec90736e96efedf82d Mon Sep 17 00:00:00 2001 From: Radovan Birdic Date: Mon, 8 Apr 2019 08:59:43 +0000 Subject: [PATCH] Added msa jobs for mips*-gnu* targets --- library/stdarch/ci/run.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/library/stdarch/ci/run.sh b/library/stdarch/ci/run.sh index bcf9f3890901..aaaac176c1d0 100755 --- a/library/stdarch/ci/run.sh +++ b/library/stdarch/ci/run.sh @@ -23,6 +23,10 @@ case ${TARGET} in i686-* | i586-*) export RUSTFLAGS="${RUSTFLAGS} -C relocation-model=static -Z plt=yes" ;; + #Unoptimized build uses fast-isel which breaks with msa + mips-* | mipsel-*) + export RUSTFLAGS="${RUSTFLAGS} -C llvm-args=-fast-isel=false" + ;; esac echo "RUSTFLAGS=${RUSTFLAGS}" @@ -75,6 +79,12 @@ case ${TARGET} in export RUSTFLAGS="${RUSTFLAGS} -C target-feature=+simd128,+unimplemented-simd128" cargo_test "--release --no-run" ;; + mips-*gnu* | mipsel-*gnu*) + export RUSTFLAGS="${RUSTFLAGS} -C target-feature=+msa,+fp64,+mips32r5" + ;; + mips64*) + export RUSTFLAGS="${RUSTFLAGS} -C target-feature=+msa" + ;; *) ;;