diff options
Diffstat (limited to 'sim/mn10300/simops.c')
-rw-r--r-- | sim/mn10300/simops.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/sim/mn10300/simops.c b/sim/mn10300/simops.c index cd4c98f..3fe6799 100644 --- a/sim/mn10300/simops.c +++ b/sim/mn10300/simops.c @@ -997,7 +997,7 @@ void OP_E0 (insn, extension) z = (value == 0); n = (value & 0x80000000); - c = (reg1 < reg2); + c = (value < reg1) || (value < reg2); v = ((reg2 & 0x80000000) == (reg1 & 0x80000000) && (reg2 & 0x80000000) != (value & 0x80000000)); @@ -1020,7 +1020,7 @@ void OP_F160 (insn, extension) z = (value == 0); n = (value & 0x80000000); - c = (reg1 < reg2); + c = (value < reg1) || (value < reg2); v = ((reg2 & 0x80000000) == (reg1 & 0x80000000) && (reg2 & 0x80000000) != (value & 0x80000000)); @@ -1043,7 +1043,7 @@ void OP_F150 (insn, extension) z = (value == 0); n = (value & 0x80000000); - c = (reg1 < reg2); + c = (value < reg1) || (value < reg2); v = ((reg2 & 0x80000000) == (reg1 & 0x80000000) && (reg2 & 0x80000000) != (value & 0x80000000)); @@ -1066,7 +1066,7 @@ void OP_F170 (insn, extension) z = (value == 0); n = (value & 0x80000000); - c = (reg1 < reg2); + c = (value < reg1) || (value < reg2); v = ((reg2 & 0x80000000) == (reg1 & 0x80000000) && (reg2 & 0x80000000) != (value & 0x80000000)); @@ -1089,7 +1089,7 @@ void OP_2800 (insn, extension) z = (value == 0); n = (value & 0x80000000); - c = (reg1 < imm); + c = (value < reg1) || (value < imm); v = ((reg1 & 0x80000000) == (imm & 0x80000000) && (reg1 & 0x80000000) != (value & 0x80000000)); @@ -1112,7 +1112,7 @@ void OP_FAC00000 (insn, extension) z = (value == 0); n = (value & 0x80000000); - c = (reg1 < imm); + c = (value < reg1) || (value < imm); v = ((reg1 & 0x80000000) == (imm & 0x80000000) && (reg1 & 0x80000000) != (value & 0x80000000)); @@ -1135,7 +1135,7 @@ void OP_FCC00000 (insn, extension) z = (value == 0); n = (value & 0x80000000); - c = (reg1 < imm); + c = (value < reg1) || (value < imm); v = ((reg1 & 0x80000000) == (imm & 0x80000000) && (reg1 & 0x80000000) != (value & 0x80000000)); @@ -1158,7 +1158,7 @@ void OP_2000 (insn, extension) z = (value == 0); n = (value & 0x80000000); - c = (reg1 < imm); + c = (value < reg1) || (value < imm); v = ((reg1 & 0x80000000) == (imm & 0x80000000) && (reg1 & 0x80000000) != (value & 0x80000000)); @@ -1181,7 +1181,7 @@ void OP_FAD00000 (insn, extension) z = (value == 0); n = (value & 0x80000000); - c = (reg1 < imm); + c = (value < reg1) || (value < imm); v = ((reg1 & 0x80000000) == (imm & 0x80000000) && (reg1 & 0x80000000) != (value & 0x80000000)); @@ -1204,7 +1204,7 @@ void OP_FCD00000 (insn, extension) z = (value == 0); n = (value & 0x80000000); - c = (reg1 < imm); + c = (value < reg1) || (value < imm); v = ((reg1 & 0x80000000) == (imm & 0x80000000) && (reg1 & 0x80000000) != (value & 0x80000000)); @@ -1263,7 +1263,7 @@ void OP_F140 (insn, extension) z = (value == 0); n = (value & 0x80000000); - c = (reg1 < reg2); + c = (value < reg1) || (value < reg2); v = ((reg2 & 0x80000000) == (reg1 & 0x80000000) && (reg2 & 0x80000000) != (value & 0x80000000)); |