コード例 #1
0
ファイル: main_minifloat.c プロジェクト: Inspirati/MP_Aerodyn
int16_t main (void)
{
//	clear_results();
//	Q16convtest();
	clear_results();
	floattest();

	multtest();
	clear_results();
	divtest();
	clear_results();
	addtest();
	clear_results();
	sqrttest();
	return 0 ;
}
コード例 #2
0
ファイル: leon3_test.c プロジェクト: EliasLuiz/TCC
leon3_test(int domp, volatile int *irqmp, int mtest)
{
	int tmp, i;

	if (!get_pid()) report_device(0x01003000);
	if (domp) mptest_start(irqmp);	
	report_subtest(REGFILE+(get_pid()<<4));
	if (regtest()) fail(1);
	multest();
	divtest();
	fputest();
	if (mtest) cramtest();
	if ((*mpfunc[get_pid()])) mpfunc[get_pid()](get_pid());
	if (domp) mptest_end(irqmp);	
	grfpu_test();
	cachetest();
	mmu_test();
	rextest();
        awptest();
}