From 74246cc3bfcbe282890f13770f3778e5680244cb Mon Sep 17 00:00:00 2001 From: MerryMage Date: Mon, 22 Aug 2016 15:38:48 +0100 Subject: [PATCH] tests/fuzz_arm: Randomize rounding mode in initial_fpscr --- tests/arm/fuzz_arm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/arm/fuzz_arm.cpp b/tests/arm/fuzz_arm.cpp index 9aa93342..23283d97 100644 --- a/tests/arm/fuzz_arm.cpp +++ b/tests/arm/fuzz_arm.cpp @@ -216,7 +216,7 @@ void FuzzJitArm(const size_t instruction_count, const size_t instructions_to_exe std::array initial_extregs; std::generate_n(initial_extregs.begin(), 64, []{ return RandInt(0, 0xFFFFFFFF); }); - u32 initial_fpscr = RandInt(0x0, 0x1) << 24; + u32 initial_fpscr = 0x01000000 | (RandInt(0, 3) << 22); interp.UnsetExclusiveMemoryAddress(); interp.Cpsr = initial_cpsr;