Add: neg branch test
This commit is contained in:
parent
9750e1ab48
commit
8b5faa374b
|
@ -23,14 +23,17 @@ ble a1, a0, forth
|
||||||
add a0, a0, 4 # R[10]=7
|
add a0, a0, 4 # R[10]=7
|
||||||
j second
|
j second
|
||||||
forth:
|
forth:
|
||||||
addi a1, zero, 4294967295 # R[11]=4294967295
|
addi a1, zero, 4294967295 # R[11]=4294967295, R[11]=-1
|
||||||
bltu a0, a1, fifth
|
bltu a0, a1, fifth
|
||||||
addi a0, a0, 5
|
addi a0, a0, 5
|
||||||
fifth:
|
fifth:
|
||||||
addi a1, zero, 16 # R[11]=16
|
addi a1, zero, 16 # R[11]=16
|
||||||
bleu a1, a0, end
|
bleu a1, a0, sixth
|
||||||
add a0, a0, 6 # R[10]=16
|
add a0, a0, 6 # R[10]=16
|
||||||
j forth
|
j forth
|
||||||
|
sixth:
|
||||||
|
blt a0, a1, end
|
||||||
|
addi a0, a0, 7 # R[10]=23
|
||||||
end:
|
end:
|
||||||
|
|
||||||
# R[10]=16
|
# R[10]=23
|
||||||
|
|
Loading…
Reference in New Issue