srli should be srali

This commit is contained in:
Yaossg 2024-11-20 22:44:07 +08:00
parent cf582a0e74
commit 043c48c81b

2
boot.c
View File

@ -765,7 +765,7 @@ int asm_sub(int lhs, int rhs) {
load(0, lhs);
load(1, rhs);
printf(" sub t0, t0, t1\n");
asm_shift_t0("srli", lhs_type);
asm_shift_t0("srai", lhs_type);
return materialize_t0(TYPE_INT);
}
if (type1) {