Stuff I forgot to commit.
This commit is contained in:
parent
b8ae0092c1
commit
9f47433501
14 changed files with 517 additions and 249 deletions
15
src/test/resources/tests/programs/constants.s
Normal file
15
src/test/resources/tests/programs/constants.s
Normal file
|
@ -0,0 +1,15 @@
|
|||
main:
|
||||
li x0, 0x0
|
||||
nop
|
||||
li x1, 0xABCDEF0
|
||||
nop
|
||||
li x1, 32
|
||||
li x1, 0x800
|
||||
li x1, 0x7FF
|
||||
nop
|
||||
nop
|
||||
done
|
||||
#regset t0,10
|
||||
#regset t1,23
|
||||
#regset t2,43
|
||||
#regset t3,-11
|
18
src/test/resources/tests/programs/halfwords.s
Normal file
18
src/test/resources/tests/programs/halfwords.s
Normal file
|
@ -0,0 +1,18 @@
|
|||
main:
|
||||
li x1, 0x11223344
|
||||
li x2, 0x55667788
|
||||
li x10, 0x100
|
||||
sw x1, 0(x10)
|
||||
sw x2, 4(x10)
|
||||
lw x3, 2(x10)
|
||||
lh x4, 3(x10)
|
||||
lb x5, 3(x10)
|
||||
lhu x6, 3(x10)
|
||||
lbu x7, 3(x10)
|
||||
sw x1, 8(x10)
|
||||
sw x1, 9(x10)
|
||||
sh x2, 9(x10)
|
||||
sb x2, 11(x10)
|
||||
lw x12, 8(x10)
|
||||
lw x13, 12(x10)
|
||||
done
|
Loading…
Add table
Add a link
Reference in a new issue