mirror of
https://github.com/asmjit/asmjit.git
synced 2025-12-18 13:04:36 +03:00
[abi] Added support for 32-bit ARM (WIP)
This commit is contained in:
@@ -28,6 +28,10 @@ static void print_app_info() noexcept {
|
||||
void benchmark_x86_emitters(uint32_t num_iterations, bool test_x86, bool test_x64) noexcept;
|
||||
#endif
|
||||
|
||||
#if !defined(ASMJIT_NO_AARCH32)
|
||||
void benchmark_aarch32_emitters(uint32_t num_iterations);
|
||||
#endif
|
||||
|
||||
#if !defined(ASMJIT_NO_AARCH64)
|
||||
void benchmark_aarch64_emitters(uint32_t num_iterations);
|
||||
#endif
|
||||
@@ -49,6 +53,9 @@ int main(int argc, char* argv[]) {
|
||||
printf(" --arch=x86 32-bit X86 architecture (X86)\n");
|
||||
printf(" --arch=x64 64-bit X86 architecture (X86_64)\n");
|
||||
#endif
|
||||
#if !defined(ASMJIT_NO_AARCH32)
|
||||
printf(" --arch=aarch32 32-bit ARM architecture (AArch32)\n");
|
||||
#endif
|
||||
#if !defined(ASMJIT_NO_AARCH64)
|
||||
printf(" --arch=aarch64 64-bit ARM architecture (AArch64)\n");
|
||||
#endif
|
||||
@@ -71,6 +78,14 @@ int main(int argc, char* argv[]) {
|
||||
}
|
||||
#endif
|
||||
|
||||
#if !defined(ASMJIT_NO_AARCH32)
|
||||
bool test_aarch32 = strcmp(arch, "all") == 0 || strcmp(arch, "aarch32") == 0;
|
||||
|
||||
if (test_aarch32) {
|
||||
benchmark_aarch32_emitters(num_iterations);
|
||||
}
|
||||
#endif
|
||||
|
||||
#if !defined(ASMJIT_NO_AARCH64)
|
||||
bool test_aarch64 = strcmp(arch, "all") == 0 || strcmp(arch, "aarch64") == 0;
|
||||
|
||||
|
||||
23
asmjit-testing/bench/asmjit_bench_codegen_a32.cpp
Normal file
23
asmjit-testing/bench/asmjit_bench_codegen_a32.cpp
Normal file
@@ -0,0 +1,23 @@
|
||||
// This file is part of AsmJit project <https://asmjit.com>
|
||||
//
|
||||
// See <asmjit/core.h> or LICENSE.md for license and copyright information
|
||||
// SPDX-License-Identifier: Zlib
|
||||
|
||||
#include <asmjit/core.h>
|
||||
|
||||
#if !defined(ASMJIT_NO_AARCH32)
|
||||
#include <asmjit/a32.h>
|
||||
|
||||
#include <limits>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <asmjit-testing/bench/asmjit_bench_codegen.h>
|
||||
|
||||
using namespace asmjit;
|
||||
|
||||
void benchmark_aarch32_emitters(uint32_t num_iterations) {
|
||||
Support::maybe_unused(num_iterations);
|
||||
}
|
||||
|
||||
#endif // !ASMJIT_NO_AARCH32
|
||||
Reference in New Issue
Block a user