From 1ab7657120cbd9552f89660e23b2d618cc03c4c7 Mon Sep 17 00:00:00 2001 From: MerryMage Date: Sun, 31 Jan 2021 13:13:10 +0000 Subject: [PATCH] MovI2R: Do not exhaustively test --- Source/UnitTests/Core/PowerPC/JitArm64/MovI2R.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Source/UnitTests/Core/PowerPC/JitArm64/MovI2R.cpp b/Source/UnitTests/Core/PowerPC/JitArm64/MovI2R.cpp index 511d1b2d6f..8f44259f8d 100644 --- a/Source/UnitTests/Core/PowerPC/JitArm64/MovI2R.cpp +++ b/Source/UnitTests/Core/PowerPC/JitArm64/MovI2R.cpp @@ -54,11 +54,13 @@ public: TEST(JitArm64, MovI2R_32BitValues) { + Common::Random::PRNG rng{0}; TestMovI2R test; - for (u64 i = 0; i < 0x100000000; i++) + for (u64 i = 0; i < 0x100000; i++) { - test.Check32(static_cast(i)); - test.Check64(i); + const u32 value = rng.GenerateValue(); + test.Check32(value); + test.Check64(value); } }