Remove the old x86 backend

This commit is contained in:
bjorn3
2021-06-18 17:28:55 +02:00
parent e989caf337
commit 9e34df33b9
246 changed files with 76 additions and 28804 deletions

View File

@@ -133,44 +133,6 @@ check: exited with status
Ok(())
}
#[test]
#[ignore]
#[cfg(all(
any(target_os = "linux", target_os = "macos"),
target_pointer_width = "64",
// Ignore test on new backend. The value this is looking for is
// not available at the point that the breakpoint is set when
// compiled by the new backend.
feature = "old-x86-backend",
))]
pub fn test_debug_dwarf_ptr() -> Result<()> {
let output = lldb_with_script(
&[
"-g",
"--opt-level",
"0",
"tests/all/debug/testsuite/reverse-str.wasm",
],
r#"b reverse-str.c:9
r
p __vmctx->set(),&*s
c"#,
)?;
check_lldb_output(
&output,
r#"
check: Breakpoint 1: no locations (pending)
check: stop reason = breakpoint 1.1
check: frame #0
sameln: reverse(s=(__ptr =
check: "Hello, world."
check: resuming
"#,
)?;
Ok(())
}
#[test]
#[ignore]
#[cfg(all(

View File

@@ -109,26 +109,3 @@ check: DW_AT_decl_line (10)
)
}
#[test]
#[ignore]
#[cfg(all(
any(target_os = "linux", target_os = "macos"),
target_arch = "x86_64",
target_pointer_width = "64",
// Ignore test on new backend. This is a specific test with hardcoded
// offsets and the new backend compiles the return basic-block at a different
// offset, causing mismatches.
feature = "old-x86-backend",
))]
fn test_debug_dwarf5_translate_lines() -> Result<()> {
check_line_program(
"tests/all/debug/testsuite/fib-wasm-dwarf5.wasm",
r##"
check: Address Line Column File ISA Discriminator Flags
check: 0x000000000000013c 15 3 1 0 0
# The important point is that the following offset must be _after_ the `ret` instruction.
# FIXME: this +1 increment might vary on other archs.
nextln: 0x000000000000013d 15 3 1 0 0 end_sequence
"##,
)
}