Skip to content

Commit a112c4d

Browse files
Amanieu d'AntrasAmanieu
Amanieu d'Antras
authored andcommitted
Support AArch64 big-endian and ILP32 in compiletest
1 parent 06f14df commit a112c4d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/tools/compiletest/src/util.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ const OS_TABLE: &[(&str, &str)] = &[
3838

3939
const ARCH_TABLE: &[(&str, &str)] = &[
4040
("aarch64", "aarch64"),
41+
("aarch64_be", "aarch64"),
4142
("amd64", "x86_64"),
4243
("arm", "arm"),
4344
("arm64", "aarch64"),
@@ -110,6 +111,7 @@ pub const TSAN_SUPPORTED_TARGETS: &[&str] = &[
110111
];
111112

112113
const BIG_ENDIAN: &[&str] = &[
114+
"aarch64_be",
113115
"armebv7r",
114116
"mips",
115117
"mips64",
@@ -160,7 +162,9 @@ pub fn matches_env(triple: &str, name: &str) -> bool {
160162
}
161163

162164
pub fn get_pointer_width(triple: &str) -> &'static str {
163-
if (triple.contains("64") && !triple.ends_with("gnux32")) || triple.starts_with("s390x") {
165+
if (triple.contains("64") && !triple.ends_with("gnux32") && !triple.ends_with("gnu_ilp32"))
166+
|| triple.starts_with("s390x")
167+
{
164168
"64bit"
165169
} else if triple.starts_with("avr") {
166170
"16bit"

0 commit comments

Comments
 (0)