about summary refs log tree commit diff
path: root/library/stdarch/ci
diff options
context:
space:
mode:
authorRadovan Birdic <root@deb-build-srv1>2019-04-08 08:59:43 +0000
committergnzlbg <gnzlbg@users.noreply.github.com>2019-04-09 09:43:17 +0200
commitfd4cf83d42bb908b1dec3fec90736e96efedf82d (patch)
treeaf3bb42bfec54efe733c14e8d4b41f39e5bdffa3 /library/stdarch/ci
parentacbb4b2165059959fa1bcbf1626aa5ef773eeb68 (diff)
downloadrust-fd4cf83d42bb908b1dec3fec90736e96efedf82d.tar.gz
rust-fd4cf83d42bb908b1dec3fec90736e96efedf82d.zip
Added msa jobs for mips*-gnu* targets
Diffstat (limited to 'library/stdarch/ci')
-rwxr-xr-xlibrary/stdarch/ci/run.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/library/stdarch/ci/run.sh b/library/stdarch/ci/run.sh
index bcf9f389090..aaaac176c1d 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"
+	;;
     *)
         ;;