Fix: name of tag in branch test source code
This commit is contained in:
parent
8b5faa374b
commit
f6b6e0f285
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue