Skip to content

Commit a493033

Browse files
committed
Add -Ctarget-feature=+avx512f run for the emulated run
+ Remove `-Z plt=yes`
1 parent 83c9cc5 commit a493033

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

ci/run.sh

+12-5
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,8 @@ case ${TARGET} in
2727
# instruction assertion checks to pass below the 20 instruction limit. If
2828
# this is the default, dynamic, then too many instructions are generated
2929
# when we assert the instruction for a function and it causes tests to fail.
30-
#
31-
# It's not clear why `-Z plt=yes` is required here. Probably a bug in LLVM.
32-
# If you can remove it and CI passes, please feel free to do so!
3330
i686-* | i586-*)
34-
export RUSTFLAGS="${RUSTFLAGS} -C relocation-model=static -Z plt=yes"
31+
export RUSTFLAGS="${RUSTFLAGS} -C relocation-model=static"
3532
;;
3633
# Some x86_64 targets enable by default more features beyond SSE2,
3734
# which cause some instruction assertion checks to fail.
@@ -102,8 +99,18 @@ fi
10299

103100
# Test targets compiled with extra features.
104101
case ${TARGET} in
105-
x86*)
102+
x86_64*emulated)
106103
export STDARCH_DISABLE_ASSERT_INSTR=1
104+
105+
export RUSTFLAGS="${RUSTFLAGS} -C target-feature=+avx"
106+
cargo_test "${PROFILE}"
107+
108+
export RUSTFLAGS="${RUSTFLAGS} -C target-feature=+avx512f"
109+
cargo_test "${PROFILE}"
110+
;;
111+
x86_64* | i686*)
112+
export STDARCH_DISABLE_ASSERT_INSTR=1
113+
107114
export RUSTFLAGS="${RUSTFLAGS} -C target-feature=+avx"
108115
cargo_test "${PROFILE}"
109116
;;

0 commit comments

Comments
 (0)