diff options
| author | MerryMage <MerryMage@users.noreply.github.com> | 2021-01-31 13:13:10 +0000 |
|---|---|---|
| committer | MerryMage <MerryMage@users.noreply.github.com> | 2021-01-31 13:17:31 +0000 |
| commit | 1ab7657120cbd9552f89660e23b2d618cc03c4c7 (patch) | |
| tree | 255b16b6ff5d65bf85803282014e461565aad8da /Source/UnitTests/Core | |
| parent | fe9207bb56ad87f584d1174582d9ca31d0fb914b (diff) | |
MovI2R: Do not exhaustively test
Diffstat (limited to 'Source/UnitTests/Core')
| -rw-r--r-- | Source/UnitTests/Core/PowerPC/JitArm64/MovI2R.cpp | 8 |
1 files 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<u32>(i)); - test.Check64(i); + const u32 value = rng.GenerateValue<u32>(); + test.Check32(value); + test.Check64(value); } } |
