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

22
bench/tests/op/mulw.s Normal file
View File

@@ -0,0 +1,22 @@
# expected: 0000000000000000, 00000000000dead0, ffffffffb080e900, -dead0, 54a029
.text
_start:
li x2, 0xdead0
li x3, 0x0
li x4, 0x1
li x5, (-1)
li x6, 0xdead0
li x7, (-2355)
# Mul 0
mulw x31, x2, x3
# Basic multiplications
mulw x31, x2, x4
mulw x31, x2, x6
# Overflow
mulw x31, x5, x2
# Signed * signed
mulw x31, x7, x7