Skip to content

Commit 3791646

Browse files
committed
Run stdarch tests in the CI
1 parent 8520bc7 commit 3791646

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,8 @@ jobs:
105105
- name: Run tests
106106
run: |
107107
./test.sh --release --clean --release-sysroot --build-sysroot --mini-tests --std-tests # --test-libcore # FIXME(antoyo): libcore tests fail.
108+
109+
- name: Run stdarch tests
110+
run: |
111+
cd build_sysroot/sysroot_src/library/stdarch/
112+
CHANNEL=release TARGET=x86_64-unknown-linux-gnu ../../../../cargo.sh test

src/base.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ pub fn compile_codegen_unit<'tcx>(tcx: TyCtxt<'tcx>, cgu_name: Symbol, supports_
101101
context.add_command_line_option("-m64");
102102
context.add_command_line_option("-mbmi");
103103
context.add_command_line_option("-mgfni");
104-
context.add_command_line_option("-mavxvnni");
104+
//context.add_command_line_option("-mavxvnni"); // The CI doesn't support this option.
105105
context.add_command_line_option("-mf16c");
106106
context.add_command_line_option("-maes");
107107
context.add_command_line_option("-mxsavec");

src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,8 @@ pub fn target_features(sess: &Session, allow_unstable: bool) -> Vec<Symbol> {
316316
// gcc -march=native -Q --help=target
317317
#[cfg(feature="master")]
318318
{
319-
(_feature.contains("sse") || _feature.contains("avx")) && !_feature.contains("avx512")
319+
// NOTE: the CPU in the CI doesn't support sse4a, so disable it to make the stdarch tests pass in the CI.
320+
(_feature.contains("sse") || _feature.contains("avx")) && !_feature.contains("avx512") && !_feature.contains("sse4a")
320321
}
321322
#[cfg(not(feature="master"))]
322323
{

0 commit comments

Comments
 (0)