about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAmanieu d'Antras <amanieu.dantras@huawei.com>2021-01-20 17:11:21 +0000
committerAmanieu d'Antras <amanieu@gmail.com>2021-01-27 22:47:57 +0000
commita112c4d61da8f3cdff27c68a787d8e1a23cc6d25 (patch)
tree630613cbab84705fa9c0827a965f4d5018c6499a
parent06f14df43bd92a7ccbb5d09fc476e6926fe4d161 (diff)
downloadrust-a112c4d61da8f3cdff27c68a787d8e1a23cc6d25.tar.gz
rust-a112c4d61da8f3cdff27c68a787d8e1a23cc6d25.zip
Support AArch64 big-endian and ILP32 in compiletest
-rw-r--r--src/tools/compiletest/src/util.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/tools/compiletest/src/util.rs b/src/tools/compiletest/src/util.rs
index 1647df8044c..292850bd9e2 100644
--- a/src/tools/compiletest/src/util.rs
+++ b/src/tools/compiletest/src/util.rs
@@ -38,6 +38,7 @@ const OS_TABLE: &[(&str, &str)] = &[
 
 const ARCH_TABLE: &[(&str, &str)] = &[
     ("aarch64", "aarch64"),
+    ("aarch64_be", "aarch64"),
     ("amd64", "x86_64"),
     ("arm", "arm"),
     ("arm64", "aarch64"),
@@ -110,6 +111,7 @@ pub const TSAN_SUPPORTED_TARGETS: &[&str] = &[
 ];
 
 const BIG_ENDIAN: &[&str] = &[
+    "aarch64_be",
     "armebv7r",
     "mips",
     "mips64",
@@ -160,7 +162,9 @@ pub fn matches_env(triple: &str, name: &str) -> bool {
 }
 
 pub fn get_pointer_width(triple: &str) -> &'static str {
-    if (triple.contains("64") && !triple.ends_with("gnux32")) || triple.starts_with("s390x") {
+    if (triple.contains("64") && !triple.ends_with("gnux32") && !triple.ends_with("gnu_ilp32"))
+        || triple.starts_with("s390x")
+    {
         "64bit"
     } else if triple.starts_with("avr") {
         "16bit"