about summary refs log tree commit diff
diff options
context:
space:
mode:
authorsayantn <sayantn05@gmail.com>2025-04-16 04:56:38 +0530
committerAmanieu d'Antras <amanieu@gmail.com>2025-04-20 21:39:39 +0000
commit6c4b416875c3d4dee3862521141e157c778796e9 (patch)
tree03c1c309918e6e4752e4776101d55c7f93060bae
parent867fe30ba076e2f631e279c4001f65fab3654085 (diff)
downloadrust-6c4b416875c3d4dee3862521141e157c778796e9.tar.gz
rust-6c4b416875c3d4dee3862521141e157c778796e9.zip
Add `-Ctarget-feature=+avx512f` run for the emulated run
 + Remove `-Z plt=yes`
-rwxr-xr-xlibrary/stdarch/ci/run.sh17
1 files changed, 12 insertions, 5 deletions
diff --git a/library/stdarch/ci/run.sh b/library/stdarch/ci/run.sh
index 16098642286..1cad06802b8 100755
--- a/library/stdarch/ci/run.sh
+++ b/library/stdarch/ci/run.sh
@@ -27,11 +27,8 @@ case ${TARGET} in
     # instruction assertion checks to pass below the 20 instruction limit. If
     # this is the default, dynamic, then too many instructions are generated
     # when we assert the instruction for a function and it causes tests to fail.
-    #
-    # It's not clear why `-Z plt=yes` is required here. Probably a bug in LLVM.
-    # If you can remove it and CI passes, please feel free to do so!
     i686-* | i586-*)
-        export RUSTFLAGS="${RUSTFLAGS} -C relocation-model=static -Z plt=yes"
+        export RUSTFLAGS="${RUSTFLAGS} -C relocation-model=static"
         ;;
     # Some x86_64 targets enable by default more features beyond SSE2,
     # which cause some instruction assertion checks to fail.
@@ -102,8 +99,18 @@ fi
 
 # Test targets compiled with extra features.
 case ${TARGET} in
-    x86*)
+    x86_64*emulated)
         export STDARCH_DISABLE_ASSERT_INSTR=1
+
+        export RUSTFLAGS="${RUSTFLAGS} -C target-feature=+avx"
+        cargo_test "${PROFILE}"
+
+        export RUSTFLAGS="${RUSTFLAGS} -C target-feature=+avx512f"
+        cargo_test "${PROFILE}"
+        ;;
+    x86_64* | i686*)
+        export STDARCH_DISABLE_ASSERT_INSTR=1
+
         export RUSTFLAGS="${RUSTFLAGS} -C target-feature=+avx"
         cargo_test "${PROFILE}"
         ;;