diff options
| author | Tilka <tilkax@gmail.com> | 2021-06-29 03:18:18 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-29 03:18:18 +0100 |
| commit | 901a4fb5f4bc9906f0f9b2c930de89b082ab1744 (patch) | |
| tree | ab59568e39b5241cae1f576700058cc467e3aad7 /Source/UnitTests/Core | |
| parent | 856c82aa2466adddcb0c22e502bf4286e57c6242 (diff) | |
| parent | ccd8233ea378b5737e4c7d086d4d762f8645951c (diff) | |
Merge pull request #9811 from JosJuice/fprf-denormal-singles
Fix FPRF handling of denormal singles
Diffstat (limited to 'Source/UnitTests/Core')
| -rw-r--r-- | Source/UnitTests/Core/PowerPC/JitArm64/FPRF.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/UnitTests/Core/PowerPC/JitArm64/FPRF.cpp b/Source/UnitTests/Core/PowerPC/JitArm64/FPRF.cpp index 7bbdffdf64..270cc1b05d 100644 --- a/Source/UnitTests/Core/PowerPC/JitArm64/FPRF.cpp +++ b/Source/UnitTests/Core/PowerPC/JitArm64/FPRF.cpp @@ -74,14 +74,14 @@ TEST(JitArm64, FPRF) for (const u64 double_input : double_test_values) { const u32 expected_double = - RunUpdateFPRF([&] { PowerPC::UpdateFPRF(Common::BitCast<double>(double_input)); }); + RunUpdateFPRF([&] { PowerPC::UpdateFPRFDouble(Common::BitCast<double>(double_input)); }); const u32 actual_double = RunUpdateFPRF([&] { test.fprf_double(double_input); }); EXPECT_EQ(expected_double, actual_double); const u32 single_input = ConvertToSingle(double_input); - const u32 expected_single = RunUpdateFPRF( - [&] { PowerPC::UpdateFPRF(Common::BitCast<double>(ConvertToDouble(single_input))); }); + const u32 expected_single = + RunUpdateFPRF([&] { PowerPC::UpdateFPRFSingle(Common::BitCast<float>(single_input)); }); const u32 actual_single = RunUpdateFPRF([&] { test.fprf_single(single_input); }); EXPECT_EQ(expected_single, actual_single); } |
