Remove the old x86 backend
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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
|
||||
"##,
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user