Skip to content

Sprintf#3

Merged
adambagley merged 2 commits intomainfrom
sprintf
Mar 18, 2026
Merged

Sprintf#3
adambagley merged 2 commits intomainfrom
sprintf

Conversation

@adambagley
Copy link
Copy Markdown
Collaborator

No description provided.

Erez Strauss and others added 2 commits March 17, 2026 21:50
…work

  Rewrite sprintf_test to work in the repo's freestanding (-nostdlib)
  environment and conform to the cocotb test harness contract.

  - Replace stdio.h calls (fputs, putc) with uart_puts/uart_putchar
  - Emit <<PASS>>/<<FAIL>> markers and halt loop per sw/README.md contract
  - Add -lgcc to link 64-bit division builtins needed by sprintf.c on RV32
  - Fix size_t test case that assumed 64-bit (RV32 truncated to zero)
  - Fix copy-pasted Makefile comment ("Memory Test" -> sprintf test)
  - Register sprintf_test in TEST_REGISTRY (tests/test_run_cocotb.py)
  - Add SPRINTF_TEST_MAX_CYCLES (2M) for FP-heavy test suite
  - Document sprintf library and test app in sw/README.md
@adambagley adambagley merged commit a3854db into main Mar 18, 2026
1 check passed
@adambagley adambagley deleted the sprintf branch March 18, 2026 04:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant