From 0f9cf09017fe287bb556c80e60fc212dc6fb0911 Mon Sep 17 00:00:00 2001 From: SimoneN64 Date: Fri, 21 Jun 2024 23:27:39 +0200 Subject: [PATCH] Remove redundant exception checks --- .../core/registers/cop/cop1instructions.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/backend/core/registers/cop/cop1instructions.cpp b/src/backend/core/registers/cop/cop1instructions.cpp index 5a4eece5..b44d96ed 100644 --- a/src/backend/core/registers/cop/cop1instructions.cpp +++ b/src/backend/core/registers/cop/cop1instructions.cpp @@ -189,14 +189,14 @@ void Cop1::SetCauseByArgWCVT(T f) { case FP_INFINITE: case FP_SUBNORMAL: SetCauseUnimplemented(); - CheckFPUException(); + //CheckFPUException(); break; case FP_NORMAL: // Check overflow if (f >= 2147483648.0f || f < -2147483648.0f) { SetCauseUnimplemented(); - CheckFPUException(); + //CheckFPUException(); } break; @@ -212,14 +212,14 @@ void Cop1::SetCauseByArgLCVT(T f) { case FP_INFINITE: case FP_SUBNORMAL: SetCauseUnimplemented(); - CheckFPUException(); + //CheckFPUException(); break; case FP_NORMAL: // Check overflow if (f >= 9007199254740992.000000 || f <= -9007199254740992.000000) { SetCauseUnimplemented(); - CheckFPUException(); + //CheckFPUException(); } break; @@ -296,15 +296,15 @@ void Cop1::SetCauseByArg(T f) { case FP_NAN: if(isqnan(f)) { SetCauseInvalid(); - CheckFPUException(); + //CheckFPUException(); } else { SetCauseUnimplemented(); - CheckFPUException(); + //CheckFPUException(); } break; case FP_SUBNORMAL: SetCauseUnimplemented(); - CheckFPUException(); + //CheckFPUException(); break; case FP_INFINITE: case FP_ZERO: @@ -337,7 +337,7 @@ void Cop1::SetCauseOnResult(T& d) { case FP_SUBNORMAL: if (!fcr31.fs || fcr31.enable_underflow || fcr31.enable_inexact_operation) { SetCauseUnimplemented(); - CheckFPUException(); + //CheckFPUException(); } else { // Since the if statement checks for the corresponding enable bits, it's safe to turn these cause bits on here. SetCauseUnderflow();