Skip to content

Commit

Permalink
Merge pull request #8 from SanjitRaman/patch-1
Browse files Browse the repository at this point in the history
Autogenerate GCC output for reference
  • Loading branch information
Fiwo735 authored Feb 6, 2024
2 parents 28fa32d + 2bf5686 commit 991fb08
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions scripts/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,21 @@ def run_test(driver: Path, log_queue: queue.Queue) -> int:
)
return 0

# GCC Reference Output
gcc_result = subprocess.run(
[
"riscv64-unknown-elf-gcc",
"-std=c90",
"-pedantic",
"-ansi",
"-O0",
"-march=rv32imfd",
"-mabi=ilp32d",
"-o", f"{log_path}.gcc.s",
"-S", str(to_assemble)
]
)

# Assemble
assembler_result = subprocess.run(
[
Expand Down

0 comments on commit 991fb08

Please sign in to comment.