Adds a test for load immediate (li) pseudo instruction
This makes sure the other tests can build upon a sane base
This commit is contained in:
9
bench/tests/op/li.s
Normal file
9
bench/tests/op/li.s
Normal file
@@ -0,0 +1,9 @@
|
||||
# exepected: 1234567890ABCDEF, 00000000FFFFFFFF
|
||||
|
||||
# li is a PSEUDO-INSTRUCTION.
|
||||
# This test makes sure we can reliably load 64bit words
|
||||
# into the processor as it is essential for all other tests
|
||||
.text
|
||||
_start:
|
||||
li x31, 0x1234567890ABCDEF
|
||||
li x31, 0x00000000FFFFFFFF
|
||||
Reference in New Issue
Block a user