Does anyone know if its possible in any way to put two labels on the same line when writing in RISC-V. I can't seem to find an answer on the documentation.
Here is an example Where I want to compute the sum of every integer in the array.
v: .word 5, 7, 7, -2, 0, 1, 1
n: .word 7
.text
lui s0, 0x10010
lw s3, n
jal jump
li a7, 1
ecall
li a7, 10
ecall
jump:loop: lw t0, 0(s0)
add s1, s1, t0
addi s0, s0, 4 #or 0x1
addi s3, s3, -1
bne s3, zero, loop
mv a0, s1
jalr zero, ra, 0
I would like to put the labels jump and loop on the same line, but the syntax is not correct because written like this after the jump label riscv tries to read the line as if it was an instruction, not another label.