Augment stdarch-test to parse PPC

- Remove some unused env variables from `run.sh`
This commit is contained in:
sayantn 2025-04-21 02:04:26 +05:30 committed by Amanieu d'Antras
parent 1f40595e88
commit 421bf535b7
3 changed files with 7 additions and 4 deletions

View file

@ -23,12 +23,10 @@ run() {
--env CARGO_TARGET_DIR=/checkout/target \
--env TARGET="${1}" \
--env STDARCH_TEST_EVERYTHING \
--env STDARCH_ASSERT_INSTR_IGNORE \
--env STDARCH_DISABLE_ASSERT_INSTR \
--env NOSTD \
--env NORUN \
--env RUSTFLAGS \
--env STDARCH_TEST_NORUN \
--volume "${HOME}/.cargo":/cargo \
--volume "$(rustc --print sysroot)":/rust:ro \
--volume "$(pwd)":/checkout:ro \

View file

@ -29,7 +29,7 @@ fn normalize(mut symbol: &str) -> String {
// Normalize to no leading underscore to handle platforms that may
// inject extra ones in symbol names.
while symbol.starts_with('_') {
while symbol.starts_with('_') || symbol.starts_with('.') {
symbol.remove(0);
}
// Windows/x86 has a suffix such as @@4.

View file

@ -104,7 +104,12 @@ pub fn assert(shim_addr: usize, fnname: &str, expected: &str) {
// failed inlining something.
s[0].starts_with("call ") && s[1].starts_with("pop") // FIXME: original logic but does not match comment
})
} else if cfg!(any(target_arch = "aarch64", target_arch = "arm64ec")) {
} else if cfg!(any(
target_arch = "aarch64",
target_arch = "arm64ec",
target_arch = "powerpc",
target_arch = "powerpc64"
)) {
instrs.iter().any(|s| s.starts_with("bl "))
} else {
// FIXME: Add detection for other archs