rv64im: passing tests
This commit is contained in:
22
bench/tests/op/mulw.s
Normal file
22
bench/tests/op/mulw.s
Normal 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
|
||||
Reference in New Issue
Block a user