sh4: fix copy-paste errors

This commit is contained in:
Zack Buhman 2024-04-19 21:00:02 +08:00
parent 65ee273b61
commit d1ce9a2d5a
3 changed files with 5 additions and 4 deletions

View File

@ -2,6 +2,6 @@
op1 ← SignExtend32(Rm); op1 ← SignExtend32(Rm);
op2 ← SignExtend32(Rn); op2 ← SignExtend32(Rn);
op2 ← op2 + op1; op2 ← op2 + op1;
t ← INT ((op2 < (- 231)) OR (op2 ≥ 231)); t ← INT ((op2 < (- (1 << 31))) OR (op2 ≥ (1 << 31)));
Rn ← Register(op2); Rn ← Register(op2);
T ← Bit(t); T ← Bit(t);

View File

@ -21,9 +21,10 @@ result ← mac + mul;
IF (s = 1) IF (s = 1)
IF (((result ⊕ mac) ∧ (result ⊕ mul))< 63 FOR 1 > = 1) IF (((result ⊕ mac) ∧ (result ⊕ mul))< 63 FOR 1 > = 1)
IF (mac< 63 FOR 1 > = 0) IF (mac< 63 FOR 1 > = 0)
result ← 247 - 1; result ← (1 << 47) - 1;
ELSE
result ← - (1 << 47);
ELSE ELSE
ELSEresult ← - 247;
result ← SignedSaturate48(result); result ← SignedSaturate48(result);
macl ← result; macl ← result;
mach ← result >> 32; mach ← result >> 32;

View File

@ -2,6 +2,6 @@
op1 ← SignExtend32(Rm); op1 ← SignExtend32(Rm);
op2 ← SignExtend32(Rn); op2 ← SignExtend32(Rn);
op2 ← op2 - op1; op2 ← op2 - op1;
t ← INT ((op2 < (- 231)) OR (op2 ≥ 231)); t ← INT ((op2 < (- (1 << 31))) OR (op2 ≥ (1 << 31)));
Rn ← Register(op2); Rn ← Register(op2);
T ← Bit(t); T ← Bit(t);