Implements (mostly untested) rv64i)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# expected: 0000000000000000, FFFFFFFFFFFFFFFF, 0000000000000010
|
||||
# expected: 0000000000000000, FFFFFFFFFFFFFFFF, 0000000000000010, 0000000000000000
|
||||
.text
|
||||
_start:
|
||||
# This test CANNOT use li as it uses addiw under the hood
|
||||
@@ -12,3 +12,10 @@ _start:
|
||||
# simple addition
|
||||
addi x1, x0, 8
|
||||
addiw x31, x1, 8
|
||||
|
||||
# 32bits trim
|
||||
lui x1, 0xFFFFF
|
||||
slli x1, x1, 20
|
||||
addiw x31, x1, 0
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user