From e0eb4ef5bcc3dff262ddf594810c5743e5f2ea73 Mon Sep 17 00:00:00 2001 From: JosJuice Date: Sat, 16 Dec 2023 13:27:13 +0100 Subject: JitArm64: Use enum class for LogicalImm size parameter This should prevent issues like the one fixed in the previous commit from happening again. --- Source/UnitTests/Core/PowerPC/JitArm64/MovI2R.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/UnitTests') 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(LogicalImm(imm, 64)), true); + EXPECT_EQ(static_cast(LogicalImm(imm, GPRSize::B64)), true); if (size < 64) { test.Check32(imm); - EXPECT_EQ(static_cast(LogicalImm(static_cast(imm), 32)), true); + EXPECT_EQ(static_cast(LogicalImm(static_cast(imm), GPRSize::B32)), true); } imm = (imm >> 63) | (imm << 1); -- cgit v1.2.3