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:
Cary R 2008-05-27 18:11:31 -07:00 committed by Stephen Williams
parent 5a0fe9ff83
commit b5e9e44e07
1 changed files with 1 additions and 1 deletions

View File

@ -3770,7 +3770,7 @@ bool of_SUBI(vthread_t thr, vvp_code_t cp)
carry = 1;
for (unsigned idx = 0 ; idx < word_count ; idx += 1) {
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