|
pub fn get_pointer_width(triple: &str) -> &'static str { |
|
if (triple.contains("64") && !triple.ends_with("gnux32")) || triple.starts_with("s390x") { |
|
"64bit" |
|
} else { |
|
"32bit" |
|
} |
|
} |
We should also support
"16bit" here.
Once that's supported, the precise_pointer_matching test can be updated:
|
// normalize-stderr-32bit: "-2147483648isize" -> "$$ISIZE_MIN" |
|
// normalize-stderr-64bit: "-9223372036854775808isize" -> "$$ISIZE_MIN" |
|
// normalize-stderr-32bit: "2147483647isize" -> "$$ISIZE_MAX" |
|
// normalize-stderr-64bit: "9223372036854775807isize" -> "$$ISIZE_MAX" |
|
// normalize-stderr-32bit: "4294967295usize" -> "$$USIZE_MAX" |
|
// normalize-stderr-64bit: "18446744073709551615usize" -> "$$USIZE_MAX" |
rust/src/tools/compiletest/src/util.rs
Lines 103 to 109 in 4bb5d35
We should also support
"16bit"here.Once that's supported, the
precise_pointer_matchingtest can be updated:rust/src/test/ui/precise_pointer_size_matching.rs
Lines 1 to 6 in 4bb5d35