tests/a64: Reminder about hidden infinite loops

This commit is contained in:
MerryMage 2020-04-23 18:11:45 +01:00
parent 5c0bb5cc63
commit 0d041696f5

View file

@ -535,3 +535,20 @@ TEST_CASE("A64: SQDMULH.4S (saturate)", "[a64]") {
REQUIRE(jit.GetVector(0) == Vector{0x7ffffffe7fffffff, 0x8000000180000001});
REQUIRE(FP::FPSR{jit.GetFpsr()}.QC() == true);
}
TEST_CASE("A64: This is an infinite loop if fast dispatch is enabled", "[a64]") {
A64TestEnv env;
Dynarmic::A64::UserConfig conf{&env};
conf.enable_fast_dispatch = false;
Dynarmic::A64::Jit jit{conf};
env.code_mem.emplace_back(0x2ef998fa);
env.code_mem.emplace_back(0x2ef41c11);
env.code_mem.emplace_back(0x0f07fdd8);
env.code_mem.emplace_back(0x9ac90d09);
env.code_mem.emplace_back(0xd63f0120); // BLR X9
env.code_mem.emplace_back(0x14000000); // B .
env.ticks_left = 6;
jit.Run();
}