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