Fix error in of_SUBI with wide results.
This patch fixes an error in the recent rework of of_SUBI. It was doing a double bit inversion.
This commit is contained in:
parent
5a0fe9ff83
commit
b5e9e44e07
|
|
@ -3770,7 +3770,7 @@ bool of_SUBI(vthread_t thr, vvp_code_t cp)
|
||||||
carry = 1;
|
carry = 1;
|
||||||
for (unsigned idx = 0 ; idx < word_count ; idx += 1) {
|
for (unsigned idx = 0 ; idx < word_count ; idx += 1) {
|
||||||
lva[idx] = add_with_carry(lva[idx], ~imm, carry);
|
lva[idx] = add_with_carry(lva[idx], ~imm, carry);
|
||||||
imm = ~0UL;
|
imm = 0UL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* We know from the vector_to_array that the address is valid
|
/* We know from the vector_to_array that the address is valid
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue