From f6b6e0f285b060a1b0f9360b55991ccf0b9683e1 Mon Sep 17 00:00:00 2001 From: "brice.boisson" Date: Mon, 27 Nov 2023 09:55:06 +0900 Subject: [PATCH] Fix: name of tag in branch test source code --- .../tb_risc_v_cpu/branch_instruction.S | 40 +++++++++---------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/tb/test_source_code/tb_risc_v_cpu/branch_instruction.S b/tb/test_source_code/tb_risc_v_cpu/branch_instruction.S index 9cd200f..5b411d9 100644 --- a/tb/test_source_code/tb_risc_v_cpu/branch_instruction.S +++ b/tb/test_source_code/tb_risc_v_cpu/branch_instruction.S @@ -6,32 +6,32 @@ */ addi a0, zero, 0 # R[10]=0 -start: -beq a0, zero, first -addi a0, a0, 1 # R[10]=3 first: -bne a0, zero, second -addi a0, a0, 2 # R[10]=2 -j start +beq a0, zero, second +addi a0, a0, 1 # R[10]=3 second: -addi a1, zero, 4 # R[11]=4 -blt a0, a1, third -addi a0, a0, 3 # R[10]=10 +bne a0, zero, third +addi a0, a0, 2 # R[10]=2 +j first third: -addi a1, zero, 7 # R[11]=7 -ble a1, a0, forth -add a0, a0, 4 # R[10]=7 -j second +addi a1, zero, 4 # R[11]=4 +blt a0, a1, forth +addi a0, a0, 3 # R[10]=10 forth: -addi a1, zero, 4294967295 # R[11]=4294967295, R[11]=-1 -bltu a0, a1, fifth -addi a0, a0, 5 +addi a1, zero, 7 # R[11]=7 +ble a1, a0, fifth +add a0, a0, 4 # R[10]=7 +j third fifth: -addi a1, zero, 16 # R[11]=16 -bleu a1, a0, sixth -add a0, a0, 6 # R[10]=16 -j forth +addi a1, zero, 4294967295 # R[11]=4294967295, R[11]=-1 +bltu a0, a1, sixth +addi a0, a0, 5 sixth: +addi a1, zero, 16 # R[11]=16 +bleu a1, a0, seventh +add a0, a0, 6 # R[10]=16 +j fifth +seventh: blt a0, a1, end addi a0, a0, 7 # R[10]=23 end: