Skip to content

Commit 2672876

Browse files
committed
Run inline asm rustc tests on CI
1 parent 91e5bd8 commit 2672876

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

scripts/setup_rust_fork.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22
set -e
33

4-
./y.sh build --no-unstable-features
4+
./y.sh build
55

66
echo "[SETUP] Rust fork"
77
git clone https://github.com/rust-lang/rust.git || true

scripts/test_rustc_tests.sh

+5-8
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,10 @@ pushd rust
1111
command -v rg >/dev/null 2>&1 || cargo install ripgrep
1212

1313
rm -r tests/ui/{unsized-locals/,lto/,linkage*} || true
14-
for test in $(rg --files-with-matches "lto|// needs-asm-support" tests/{codegen-units,ui,incremental}); do
14+
for test in $(rg --files-with-matches "lto" tests/{codegen-units,ui,incremental}); do
1515
rm $test
1616
done
1717

18-
for test in tests/run-make/**/Makefile; do
19-
if rg "# needs-asm-support" $test >/dev/null; then
20-
rm -r $(dirname $test)
21-
fi
22-
done
23-
2418
for test in $(rg -i --files-with-matches "//(\[\w+\])?~[^\|]*\s*ERR|// error-pattern:|// build-fail|// run-fail|-Cllvm-args" tests/ui); do
2519
rm $test
2620
done
@@ -36,8 +30,9 @@ rm tests/ui/parser/unclosed-delimiter-in-dep.rs # submodule contains //~ERROR
3630
rm -r tests/run-make/comment-section # cg_clif doesn't yet write the .comment section
3731

3832
# requires stack unwinding
39-
# FIXME add needs-unwind to this test
33+
# FIXME add needs-unwind to these tests
4034
rm -r tests/run-make/libtest-junit
35+
rm tests/ui/asm/may_unwind.rs
4136

4237
# extra warning about -Cpanic=abort for proc macros
4338
rm tests/ui/proc-macro/crt-static.rs
@@ -78,6 +73,8 @@ rm -r tests/run-make/symbols-include-type-name # --emit=asm not supported
7873
rm -r tests/run-make/target-specs # i686 not supported by Cranelift
7974
rm -r tests/run-make/mismatching-target-triples # same
8075
rm -r tests/run-make/use-extern-for-plugins # same
76+
rm tests/ui/asm/x86_64/issue-82869.rs # vector regs in inline asm not yet supported
77+
rm tests/ui/asm/x86_64/issue-96797.rs # const and sym inline asm operands don't work entirely correctly
8178

8279
# requires LTO
8380
rm -r tests/run-make/cdylib

0 commit comments

Comments
 (0)