Added simple vec test

This commit is contained in:
fares
2019-11-17 17:41:24 -05:00
parent 650d6141ab
commit a3e0b6ed90
16 changed files with 29970 additions and 28549 deletions

View File

@@ -27,12 +27,7 @@ _start:
jal vx_set_sp
li a0, 1
.word 0x0005006b # tmc 1
# Initialize global pointer
.option push
.option norelax
1:auipc gp, %pcrel_hi(__global_pointer$)
addi gp, gp, %pcrel_lo(1b)
.option pop
# Initialize global pointerp
# call __cxx_global_var_init
# Clear the bss segment
la a0, _edata
@@ -55,6 +50,12 @@ _start:
vx_set_sp:
li a0, 4
.word 0x0005006b # tmc 4
.option push
.option norelax
1:auipc gp, %pcrel_hi(__global_pointer$)
addi gp, gp, %pcrel_lo(1b)
.option po
csrr a3, 0x21 # get wid
slli a3, a3, 0x1a # shift by wid