Beispiel #1
0
void ArmEmitterTest()
{
	// Disabled for now.
	return;

	for (int i = 0; i < 6; i++) {
		ILOG("--------------------------");
	}
	ILOG("--------------------------");
	ILOG("Running ARM emitter test!");
	ILOG("--------------------------");

	TestCode gen;
	gen.ReserveCodeSpace(0x1000);
	const u8 *codeStart = gen.GetCodePtr();
	gen.Generate();

	u32 retval = CallPtr(gen.testCodePtr);
	// ILOG("ARM emitter test 1 passed if %f == 3.0! retval = %08x", abc[32 + 31], retval);
	ILOG("c: %f %f %f %f", c[0], c[1], c[2], c[3]);
	for (int i = 0; i < 6; i++) {
		ILOG("--------------------------");
	}
	// DisassembleArm(codeStart, gen.GetCodePtr()-codeStart);
}
Beispiel #2
0
void ArmEmitterTest()
{
	ILOG("Running ARM emitter test!");
	TestCode gen;
	gen.ReserveCodeSpace(0x4000);
	gen.Generate();

	CallPtr(gen.testCodePtr);
	ILOG("ARM emitter test 1 passed!");
}