Augment stdarch-test to parse PPC
- Remove some unused env variables from `run.sh`
This commit is contained in:
parent
1f40595e88
commit
421bf535b7
3 changed files with 7 additions and 4 deletions
|
|
@ -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 \
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue