提交 185f0762 编写于 作者: T ths

Optimize the conventional move operation.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3720 c046a42c-6fe2-441c-8c8c-71466251a162
上级 e7c24003
......@@ -1240,6 +1240,12 @@ static void gen_arith (CPUState *env, DisasContext *ctx, uint32_t opc,
return;
}
GEN_LOAD_REG_TN(T0, rs);
/* Specialcase the conventional move operation. */
if (rt == 0 && (opc == OPC_ADDU || opc == OPC_DADDU
|| opc == OPC_SUBU || opc == OPC_DSUBU)) {
GEN_STORE_TN_REG(rd, T0);
return;
}
GEN_LOAD_REG_TN(T1, rt);
switch (opc) {
case OPC_ADD:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册