File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff 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.
10299
103100# Test targets compiled with extra features.
104101case ${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 ;;
You can’t perform that action at this time.
0 commit comments