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
|
addi a0, zero, 0 # R[10]=0
|
||||||
start:
|
|
||||||
beq a0, zero, first
|
|
||||||
addi a0, a0, 1 # R[10]=3
|
|
||||||
first:
|
first:
|
||||||
bne a0, zero, second
|
beq a0, zero, second
|
||||||
addi a0, a0, 2 # R[10]=2
|
addi a0, a0, 1 # R[10]=3
|
||||||
j start
|
|
||||||
second:
|
second:
|
||||||
addi a1, zero, 4 # R[11]=4
|
bne a0, zero, third
|
||||||
blt a0, a1, third
|
addi a0, a0, 2 # R[10]=2
|
||||||
addi a0, a0, 3 # R[10]=10
|
j first
|
||||||
third:
|
third:
|
||||||
addi a1, zero, 7 # R[11]=7
|
addi a1, zero, 4 # R[11]=4
|
||||||
ble a1, a0, forth
|
blt a0, a1, forth
|
||||||
add a0, a0, 4 # R[10]=7
|
addi a0, a0, 3 # R[10]=10
|
||||||
j second
|
|
||||||
forth:
|
forth:
|
||||||
addi a1, zero, 4294967295 # R[11]=4294967295, R[11]=-1
|
addi a1, zero, 7 # R[11]=7
|
||||||
bltu a0, a1, fifth
|
ble a1, a0, fifth
|
||||||
addi a0, a0, 5
|
add a0, a0, 4 # R[10]=7
|
||||||
|
j third
|
||||||
fifth:
|
fifth:
|
||||||
addi a1, zero, 16 # R[11]=16
|
addi a1, zero, 4294967295 # R[11]=4294967295, R[11]=-1
|
||||||
bleu a1, a0, sixth
|
bltu a0, a1, sixth
|
||||||
add a0, a0, 6 # R[10]=16
|
addi a0, a0, 5
|
||||||
j forth
|
|
||||||
sixth:
|
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
|
blt a0, a1, end
|
||||||
addi a0, a0, 7 # R[10]=23
|
addi a0, a0, 7 # R[10]=23
|
||||||
end:
|
end:
|
||||||
|
|
Loading…
Reference in New Issue