File tree 1 file changed +12
-5
lines changed
1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -27,11 +27,8 @@ case ${TARGET} in
27
27
# instruction assertion checks to pass below the 20 instruction limit. If
28
28
# this is the default, dynamic, then too many instructions are generated
29
29
# 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!
33
30
i686-* | i586-* )
34
- export RUSTFLAGS=" ${RUSTFLAGS} -C relocation-model=static -Z plt=yes "
31
+ export RUSTFLAGS=" ${RUSTFLAGS} -C relocation-model=static"
35
32
;;
36
33
# Some x86_64 targets enable by default more features beyond SSE2,
37
34
# which cause some instruction assertion checks to fail.
102
99
103
100
# Test targets compiled with extra features.
104
101
case ${TARGET} in
105
- x86 * )
102
+ x86_64 * emulated )
106
103
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
+
107
114
export RUSTFLAGS=" ${RUSTFLAGS} -C target-feature=+avx"
108
115
cargo_test " ${PROFILE} "
109
116
;;
You can’t perform that action at this time.
0 commit comments