blob: 75f3573c864d623508a06fd437608a4888c336ad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
@micropython.asm_rv32
def test_sh1add(a0, a1):
sh1add(a0, a0, a1)
@micropython.asm_rv32
def test_sh2add(a0, a1):
sh2add(a0, a0, a1)
@micropython.asm_rv32
def test_sh3add(a0, a1):
sh3add(a0, a0, a1)
print(hex(test_sh1add(10, 20)))
print(hex(test_sh2add(10, 20)))
print(hex(test_sh3add(10, 20)))
|