Skip to content

Commit eb5995b

Browse files
committed
make the inliner checker into a generic asm checker.
1 parent 5de0f5e commit eb5995b

File tree

4 files changed

+19
-26
lines changed

4 files changed

+19
-26
lines changed

dump.bat

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
cargo build --examples --verbose
22
arm-none-eabi-objdump --headers --disassemble --demangle --architecture=armv4t --no-show-raw-insn -Mreg-names-std target/thumbv4t-none-eabi/debug/examples/hello >target/dump-hello.txt
3-
arm-none-eabi-objdump --headers --disassemble --demangle --architecture=armv4t --no-show-raw-insn -Mreg-names-std target/thumbv4t-none-eabi/debug/examples/instruction_inline >target/dump-instruction_inline.txt
3+
arm-none-eabi-objdump --headers --disassemble --demangle --architecture=armv4t --no-show-raw-insn -Mreg-names-std target/thumbv4t-none-eabi/debug/examples/asm_scratch >target/dump-asm_scratch.txt

dump.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22
cargo build --examples --verbose
33
arm-none-eabi-objdump --headers --disassemble --demangle --architecture=armv4t --no-show-raw-insn -Mreg-names-std target/thumbv4t-none-eabi/debug/examples/hello >target/dump-hello.txt
4-
arm-none-eabi-objdump --headers --disassemble --demangle --architecture=armv4t --no-show-raw-insn -Mreg-names-std target/thumbv4t-none-eabi/debug/examples/instruction_inline >target/dump-instruction_inline.txt
4+
arm-none-eabi-objdump --headers --disassemble --demangle --architecture=armv4t --no-show-raw-insn -Mreg-names-std target/thumbv4t-none-eabi/debug/examples/asm_scratch >target/dump-asm_scratch.txt

examples/asm_scratch.rs

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#![no_std]
2+
#![no_main]
3+
#![allow(unused_imports)]
4+
5+
//! Scratch space for checking the asm output of stuff.
6+
7+
use gba::prelude::*;
8+
9+
#[panic_handler]
10+
fn panic_handler(_: &core::panic::PanicInfo) -> ! {
11+
loop {}
12+
}
13+
14+
#[no_mangle]
15+
extern "C" fn main() -> ! {
16+
loop {}
17+
}

examples/instruction_inline.rs

-24
This file was deleted.

0 commit comments

Comments
 (0)