srli should be srai
This commit is contained in:
parent
cf582a0e74
commit
653d42ccf3
1 changed files with 1 additions and 1 deletions
2
boot.c
2
boot.c
|
@ -765,7 +765,7 @@ int asm_sub(int lhs, int rhs) {
|
||||||
load(0, lhs);
|
load(0, lhs);
|
||||||
load(1, rhs);
|
load(1, rhs);
|
||||||
printf(" sub t0, t0, t1\n");
|
printf(" sub t0, t0, t1\n");
|
||||||
asm_shift_t0("srli", lhs_type);
|
asm_shift_t0("srai", lhs_type);
|
||||||
return materialize_t0(TYPE_INT);
|
return materialize_t0(TYPE_INT);
|
||||||
}
|
}
|
||||||
if (type1) {
|
if (type1) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue