mirror of
https://github.com/jpd002/Play-.git
synced 2025-04-28 13:47:57 +03:00

Some checks failed
Build macOS / build_macos (push) Has been cancelled
Build Android / build_android (apk) (push) Has been cancelled
Build Android / build_android (libretro) (push) Has been cancelled
Build Linux ARM32 / build_linux_arm32 (push) Has been cancelled
Build Linux ARM64 / build_linux_arm64 (push) Has been cancelled
Build Windows Psf / build_windows_psf (off, x86_64, Visual Studio 16 2019, installer64.nsi, x64) (push) Has been cancelled
Build Windows Psf / build_windows_psf (on, x86_64, Visual Studio 16 2019, installer64.nsi, x64) (push) Has been cancelled
Build Windows / build_windows (x86_32, Visual Studio 16 2019, installer32.nsi, win32_msvc2019, Win32) (push) Has been cancelled
Build Windows / build_windows (x86_64, Visual Studio 16 2019, installer64.nsi, win64_msvc2019_64, x64) (push) Has been cancelled
Check Format / run_clangformat (push) Has been cancelled
Build iOS / build_ios (push) Has been cancelled
Build JavaScript / build_js (push) Has been cancelled
Build Linux / build_linux (push) Has been cancelled
72 lines
1.9 KiB
C++
72 lines
1.9 KiB
C++
#include <stdio.h>
|
|
#include <assert.h>
|
|
#include <fenv.h>
|
|
#include "DefaultAppConfig.h"
|
|
#include "FpUtils.h"
|
|
#include "AddTest.h"
|
|
#include "BranchTest.h"
|
|
#include "DynamicStallTest.h"
|
|
#include "DynamicStallTest2.h"
|
|
#include "FdivEfuMixTest.h"
|
|
#include "FlagsTest.h"
|
|
#include "FlagsTest2.h"
|
|
#include "FlagsTest3.h"
|
|
#include "FlagsTest4.h"
|
|
#include "IntBranchDelayTest.h"
|
|
#include "IntBranchDelayTest2.h"
|
|
#include "IntBranchDelayTest3.h"
|
|
#include "MinMaxTest.h"
|
|
#include "MinMaxFlagsTest.h"
|
|
#include "StallTest.h"
|
|
#include "StallTest2.h"
|
|
#include "StallTest3.h"
|
|
#include "StallTest4.h"
|
|
#include "StallTest5.h"
|
|
#include "StallTest6.h"
|
|
#include "TriAceTest.h"
|
|
|
|
typedef std::function<CTest*()> TestFactoryFunction;
|
|
|
|
// clang-format off
|
|
static const TestFactoryFunction s_factories[] =
|
|
{
|
|
[]() { return new CAddTest(); },
|
|
[]() { return new CBranchTest(); },
|
|
[]() { return new CDynamicStallTest(); },
|
|
[]() { return new CDynamicStallTest2(); },
|
|
[]() { return new CFdivEfuMixTest(); },
|
|
[]() { return new CFlagsTest(); },
|
|
[]() { return new CFlagsTest2(); },
|
|
[]() { return new CFlagsTest3(); },
|
|
[]() { return new CFlagsTest4(); },
|
|
[]() { return new CIntBranchDelayTest(); },
|
|
[]() { return new CIntBranchDelayTest2(); },
|
|
[]() { return new CIntBranchDelayTest3(); },
|
|
[]() { return new CMinMaxTest(); },
|
|
[]() { return new CMinMaxFlagsTest(); },
|
|
[]() { return new CStallTest(); },
|
|
[]() { return new CStallTest2(); },
|
|
[]() { return new CStallTest3(); },
|
|
[]() { return new CStallTest4(); },
|
|
[]() { return new CStallTest5(); },
|
|
[]() { return new CStallTest6(); },
|
|
[]() { return new CTriAceTest(); },
|
|
};
|
|
// clang-format on
|
|
|
|
int main(int argc, const char** argv)
|
|
{
|
|
fesetround(FE_TOWARDZERO);
|
|
FpUtils::SetDenormalHandlingMode();
|
|
|
|
auto virtualMachine = std::make_unique<CTestVm>();
|
|
|
|
for(const auto& factory : s_factories)
|
|
{
|
|
virtualMachine->Reset();
|
|
auto test = factory();
|
|
test->Execute(*virtualMachine);
|
|
delete test;
|
|
}
|
|
return 0;
|
|
}
|