Test fail for apple arm64 backend
zhkl0228 opened this issue · 2 comments
zhkl0228 commented
In file tests/A32/test_arm_instructions.cpp, add test:
TEST_CASE("arm: svc", "[arm][A32]") {
ArmTestEnv test_env;
A32::Jit jit{GetUserConfig(&test_env)};
test_env.code_mem = {
0xef0001ee, // svc #0x1ee
0xe30a0071, // mov r0, #41073
0xeafffffe, // b +#0
};
jit.SetCpsr(0x000001d0); // User-mode
test_env.ticks_left = 3;
jit.Run();
REQUIRE(jit.Regs()[0] == 41073);
REQUIRE(jit.Regs()[15] == 0x00000008);
}
SachinVin commented
Finally works with citra, thanks ❤