提交 6cbe6e8c 编写于 作者: Z Zihao Yu

engine,rv64,rtl-basic: fix rtl_setrelopi

* now we can run mips32-sdi with amtest
上级 2eb6727c
......@@ -125,8 +125,8 @@ make_rtl(setrelopi, uint32_t relop, rtlreg_t *dest, const rtlreg_t *src1, const
uint32_t idx_src1 = reg_ptr2idx(s, src1);
if (!big_imm && (relop == RELOP_LT || relop == RELOP_LTU)) {
switch (relop) {
case RELOP_LT: rv64_slt(idx_dest, idx_src1, imm); return;
case RELOP_LTU: rv64_sltu(idx_dest, idx_src1, imm); return;
case RELOP_LT: rv64_slti(idx_dest, idx_src1, imm); return;
case RELOP_LTU: rv64_sltiu(idx_dest, idx_src1, imm); return;
// fall through for default cases
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册