diff options
| author | JosJuice <josjuice@gmail.com> | 2023-12-16 13:27:13 +0100 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2023-12-16 16:48:26 +0100 |
| commit | e0eb4ef5bcc3dff262ddf594810c5743e5f2ea73 (patch) | |
| tree | 43680bc372d68677e9c463ee0b87294d2ea9fa4a /Source/UnitTests/Core | |
| parent | 064b23b25b6e3ea326e098ae07f806fdc7dd3da7 (diff) | |
JitArm64: Use enum class for LogicalImm size parameter
This should prevent issues like the one fixed in the previous commit
from happening again.
Diffstat (limited to 'Source/UnitTests/Core')
| -rw-r--r-- | Source/UnitTests/Core/PowerPC/JitArm64/MovI2R.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/UnitTests/Core/PowerPC/JitArm64/MovI2R.cpp b/Source/UnitTests/Core/PowerPC/JitArm64/MovI2R.cpp index aa70617de9..1cbf5dce8d 100644 --- a/Source/UnitTests/Core/PowerPC/JitArm64/MovI2R.cpp +++ b/Source/UnitTests/Core/PowerPC/JitArm64/MovI2R.cpp @@ -98,12 +98,12 @@ TEST(JitArm64, MovI2R_LogImm) for (unsigned rotation = 0; rotation < size; ++rotation) { test.Check64(imm); - EXPECT_EQ(static_cast<bool>(LogicalImm(imm, 64)), true); + EXPECT_EQ(static_cast<bool>(LogicalImm(imm, GPRSize::B64)), true); if (size < 64) { test.Check32(imm); - EXPECT_EQ(static_cast<bool>(LogicalImm(static_cast<u32>(imm), 32)), true); + EXPECT_EQ(static_cast<bool>(LogicalImm(static_cast<u32>(imm), GPRSize::B32)), true); } imm = (imm >> 63) | (imm << 1); |
