diff options
| author | JosJuice <josjuice@gmail.com> | 2021-06-13 14:35:04 +0200 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2021-06-27 20:34:49 +0200 |
| commit | d56721ebb9910cd14115f778c57c58a6fd0ca366 (patch) | |
| tree | 3781316ee3ae16e8d2ecf6b7d987533bb7f3444f /Source/UnitTests/Core | |
| parent | def5666419a04c22c61925f96d2c970a0bb01d72 (diff) | |
Interpreter: 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); } |
