mirror of
https://github.com/Noratrieb/rustv32i.git
synced 2026-01-14 21:35:02 +01:00
start tests
This commit is contained in:
parent
ca565ddeb3
commit
0af012d43a
10 changed files with 412 additions and 118 deletions
23
tests/check/arith.s
Normal file
23
tests/check/arith.s
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
.section .text
|
||||
.globl _start
|
||||
_start:
|
||||
li t0, 10
|
||||
li t1, 20
|
||||
add t2, t0, t1
|
||||
li t3, 30
|
||||
bne t2, t3, fail
|
||||
|
||||
li t0, 10
|
||||
li t1, -2
|
||||
add t2, t0, t1
|
||||
li t3, 8
|
||||
bne t2, t3, fail
|
||||
|
||||
li a7, -1
|
||||
li a0, 1
|
||||
ecall
|
||||
|
||||
fail:
|
||||
li a7, -1
|
||||
li a0, 0
|
||||
ecall
|
||||
6
tests/check/smoke.s
Normal file
6
tests/check/smoke.s
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
.section .text
|
||||
.globl _start
|
||||
_start:
|
||||
li a7, -1
|
||||
li a0, 1
|
||||
ecall
|
||||
Loading…
Add table
Add a link
Reference in a new issue