rv64im: passing tests
This commit is contained in:
@@ -1,18 +1,19 @@
|
||||
# expected: 0000000000000000, 0000000000000000, ffffffffbd5a0000, ffffffffdeacffff
|
||||
# expected: 0000000000000000, 0000000000000000, c1b080e9, ffffffffffffffff
|
||||
.text
|
||||
_start:
|
||||
lui x2, 0xdead0
|
||||
lui x3, 0x0
|
||||
addi x4, x0, 0x1
|
||||
addi x5, x0, (-1)
|
||||
lui x6, 0xdead0
|
||||
li x2, 0xdead0
|
||||
li x3, 0x0
|
||||
li x4, 0x1
|
||||
li x5, (-1)
|
||||
li x6, 0xdead0
|
||||
li x7, 0xdead00000000
|
||||
|
||||
# Mul 0
|
||||
mulh x31, x2, x3
|
||||
|
||||
# Basic multiplications
|
||||
mulh x31, x2, x4
|
||||
mulh x31, x2, x6
|
||||
mulh x31, x7, x7
|
||||
|
||||
# Overflow
|
||||
mulh x31, x5, x2
|
||||
|
||||
Reference in New Issue
Block a user