Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[tests] initialize all scalar register to zero
Browse files Browse the repository at this point in the history
Signed-off-by: Avimitin <[email protected]>
Avimitin committed Nov 28, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 95bfb1e commit 22f40c9
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions tests/t1_main.S
Original file line number Diff line number Diff line change
@@ -4,6 +4,38 @@ _start:
csrs mstatus, a0
csrwi vcsr, 0

li x1, 0
li x2, 0
li x3, 0
li x4, 0
li x5, 0
li x6, 0
li x7, 0
li x8, 0
li x9, 0
li x10, 0
li x11, 0
li x12, 0
li x13, 0
li x14, 0
li x15, 0
li x16, 0
li x17, 0
li x18, 0
li x19, 0
li x20, 0
li x21, 0
li x22, 0
li x23, 0
li x24, 0
li x25, 0
li x26, 0
li x27, 0
li x28, 0
li x29, 0
li x30, 0
li x31, 0

la sp, __stacktop

// no ra to save

0 comments on commit 22f40c9

Please sign in to comment.