add riscv64 backend for cranelift. (#4271)
Add a RISC-V 64 (`riscv64`, RV64GC) backend. Co-authored-by: yuyang <756445638@qq.com> Co-authored-by: Chris Fallin <chris@cfallin.org> Co-authored-by: Afonso Bordado <afonsobordado@az8.co>
This commit is contained in:
7
build.rs
7
build.rs
@@ -172,6 +172,9 @@ fn ignore(testsuite: &str, testname: &str, strategy: &str) -> bool {
|
||||
// FIXME: These tests fail under qemu due to a qemu bug.
|
||||
(_, "simd_f32x4_pmin_pmax") if platform_is_s390x() => return true,
|
||||
(_, "simd_f64x2_pmin_pmax") if platform_is_s390x() => return true,
|
||||
// riscv64 backend does not yet have a fully complete SIMD backend.
|
||||
("simd", _) if platform_is_riscv64() => return true,
|
||||
("memory64", "simd") if platform_is_riscv64() => return true,
|
||||
_ => {}
|
||||
},
|
||||
_ => panic!("unrecognized strategy"),
|
||||
@@ -183,3 +186,7 @@ fn ignore(testsuite: &str, testname: &str, strategy: &str) -> bool {
|
||||
fn platform_is_s390x() -> bool {
|
||||
env::var("CARGO_CFG_TARGET_ARCH").unwrap() == "s390x"
|
||||
}
|
||||
|
||||
fn platform_is_riscv64() -> bool {
|
||||
env::var("CARGO_CFG_TARGET_ARCH").unwrap() == "riscv64"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user