mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-28 20:16:58 +03:00
Update compiletest's has_asm_support to match rustc
The list of `ASM_SUPPORTED_ARCHS` was missing a few from the compiler's actual stable list.
This commit is contained in:
@@ -481,9 +481,17 @@ pub fn has_threads(&self) -> bool {
|
||||
}
|
||||
|
||||
pub fn has_asm_support(&self) -> bool {
|
||||
// This should match the stable list in `LoweringContext::lower_inline_asm`.
|
||||
static ASM_SUPPORTED_ARCHS: &[&str] = &[
|
||||
"x86", "x86_64", "arm", "aarch64", "riscv32",
|
||||
"x86",
|
||||
"x86_64",
|
||||
"arm",
|
||||
"aarch64",
|
||||
"arm64ec",
|
||||
"riscv32",
|
||||
"riscv64",
|
||||
"loongarch64",
|
||||
"s390x",
|
||||
// These targets require an additional asm_experimental_arch feature.
|
||||
// "nvptx64", "hexagon", "mips", "mips64", "spirv", "wasm32",
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user