rv64im: passing tests

This commit is contained in:
2025-11-12 11:50:09 +01:00
parent 7a1221b16e
commit cfacd6a9fc
16 changed files with 321 additions and 60 deletions

27
bench/tests/op/remw.s Normal file
View File

@@ -0,0 +1,27 @@
# expected: dead0, ffffffffffffffff, 0, 0, 18, 0, -57
.text
_start:
li x1, 0x0293
li x2, 0xdead0
li x3, 0x0
li x4, 0x1
li x5, (-1)
li x6, 0xdead0
li x7, (-2355)
li x8, (-324)
li x9, 0x80000000
# Remainder by 0
remw x31, x2, x3
remw x31, x5, x3
# Basic remainders
remw x31, x2, x4
remw x31, x2, x6
remw x31, x6, x1
# Overflow
remw x31, x9, x5
# Signed / signed
remw x31, x7, x8