Lays groundword for Rv64i extension

Some base files had to be modified to support 64-bit architecture
as well as the Makefile to load 64-bit words into memory
This commit is contained in:
2025-11-10 16:38:40 +01:00
parent cbfd806444
commit 9daa296892
26 changed files with 198 additions and 94 deletions

View File

@@ -1,4 +1,4 @@
# expected: dead0000, dead0001, 00000000
# expected: ffffffffdead0000, ffffffffdead0001, 0000000000000000
.text
_start:
lui x2, 0xdead0

View File

@@ -1,4 +1,4 @@
# expected: dead0000, dead0001, fffff800, ffffffff, 00000000
# expected: FFFFFFFFdead0000, FFFFFFFFdead0001, fffffffffffff800, ffffffffffffffff, 0000000000000000
.text
_start:
lui x2, 0xdead0

View File

@@ -1,4 +1,4 @@
# expected: FFFFFFFB, FFFFFFFB
# expected: FFFFFFFFFFFFFFFB, FFFFFFFFFFFFFFFB
.text
_start:
addi x1, x0, 0x0FB

View File

@@ -1,4 +1,4 @@
# expected: FFFFF1BC, FFFFF1BC
# expected: FFFFFFFFFFFFF1BC, FFFFFFFFFFFFF1BC
.text
_start:
lui x1, 0xF

View File

@@ -1,4 +1,4 @@
# expected: 00000000,FFFFF000,12345000
# expected: 00000000,FFFFFFFFFFFFF000,12345000
.text
lui x31, 0 #Test chargement d'une valeur nulle

View File

@@ -1,4 +1,4 @@
# expected: 000001FF, FFFFFFFF
# expected: 000001FF, FFFFFFFFFFFFFFFF
.text
_start:
addi x1, x0, 0x100

View File

@@ -1,4 +1,4 @@
# expected: 000001FF, FFFFFFFF
# expected: 00000000000001FF, FFFFFFFFFFFFFFFF
.text
_start:
addi x1, x0, 0x100

View File

@@ -10,4 +10,5 @@ _start:
sll x31, x1, x2
addi x1, x0, 0x0F0
addi x2, x0, 63
sll x31, x1, x2

View File

@@ -8,4 +8,4 @@ _start:
slli x31, x1, 31
addi x1, x0, 0x0F0
slli x31, x1, 31
slli x31, x1, 63

View File

@@ -1,4 +1,4 @@
# expected: 000000FF, FFFFFFFF, 00000000
# expected: 000000FF, FFFFFFFFFFFFFFFF, 00000000
.text
_start:
addi x1, x0, 0x3FC

View File

@@ -1,4 +1,4 @@
# expected: 000000FF, FFFFFFFF, 00000000
# expected: 000000FF, FFFFFFFFFFFFFFFF, 00000000
.text
_start:
addi x1, x0, 0x3FC

View File

@@ -5,7 +5,7 @@ _start:
addi x2, x0, 2
srl x31, x1, x2
lui x1, 0xA0000
li x1, 0x00000000A0000000
addi x2, x0, 31
srl x31, x1, x2

View File

@@ -4,7 +4,8 @@ _start:
addi x1, x0, 0x3FC
srli x31, x1, 2
lui x1, 0xA0000
#lui x1, 0xA0000
li x1, 0x00000000A0000000
srli x31, x1, 31
lui x1, 0x0A000

View File

@@ -1,4 +1,4 @@
# expected: 00000000, 00000001, FFFFFFFF, 00000008
# expected: 00000000, 00000001, FFFFFFFFFFFFFFFF, 00000008
.text
_start:
# Sub equal numbers