提交 5d0ba067 编写于 作者: Z Zihao Yu

riscv64,exec: fix sraw

* the src should be first sign-extended
上级 7e55beb0
......@@ -120,6 +120,7 @@ make_EHelper(srlw) {
rtl_andi(&id_src2->val, &id_src2->val, 0x1f);
if (decinfo.isa.instr.funct7 == 32) {
// sraw
rtl_sext(&id_src->val, &id_src->val, 4);
rtl_sar(&s0, &id_src->val, &id_src2->val);
rtl_sext(&s0, &s0, 4);
print_asm_template3(sraw);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册