Fix cmov immed.

This commit is contained in:
Andrew Cagney
1997-09-19 02:20:02 +00:00
parent 1379884be1
commit bd4c35cc6d
4 changed files with 77 additions and 34 deletions

View File

@@ -305,7 +305,7 @@ trace_output (result)
/* Returns 1 if the specific condition is met, returns 0 otherwise. */
unsigned int
int
condition_met (unsigned code)
{
unsigned int psw = PSW;
@@ -2709,22 +2709,6 @@ OP_24007E0 (void)
return 4;
}
/* end-sanitize-v850e */
/* start-sanitize-v850e */
/* cmov imm5, reg2, reg3 */
int
OP_30007E0 (void)
{
trace_input ("cmov", OP_IMM_REG_REG, 0);
State.regs[ OP[2] >> 11 ] = condition_met (OP[0]) ? SEXT5( OP[0] ) : State.regs[ OP[1] ];
trace_output (OP_IMM_REG_REG);
return 4;
}
/* end-sanitize-v850e */
/* start-sanitize-v850e */
/* ld.hu */