mirror of
https://github.com/asmjit/asmjit.git
synced 2025-12-17 12:34:35 +03:00
[ABI] Initial AArch64 support
This commit is contained in:
@@ -16,6 +16,10 @@ using namespace asmjit;
|
||||
void benchmarkX86Emitters(uint32_t numIterations, bool testX86, bool testX64) noexcept;
|
||||
#endif
|
||||
|
||||
#if !defined(ASMJIT_NO_AARCH64)
|
||||
void benchmarkA64Emitters(uint32_t numIterations);
|
||||
#endif
|
||||
|
||||
int main(int argc, char* argv[]) {
|
||||
CmdLine cmdLine(argc, argv);
|
||||
uint32_t numIterations = 20000;
|
||||
@@ -47,5 +51,12 @@ int main(int argc, char* argv[]) {
|
||||
benchmarkX86Emitters(numIterations, testX86, testX64);
|
||||
#endif
|
||||
|
||||
#if !defined(ASMJIT_NO_AARCH64)
|
||||
bool testAArch64 = strcmp(arch, "all") == 0 || strcmp(arch, "aarch64") == 0;
|
||||
|
||||
if (testAArch64)
|
||||
benchmarkA64Emitters(numIterations);
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user