forked from openvinotoolkit/openvino
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{ | ||
} |
25 changes: 25 additions & 0 deletions
25
src/plugins/intel_cpu/src/emitters/plugin/aarch64/debug_capabilities.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#ifndef DEBUG_CAPABILITIES_HPP | ||
#define DEBUG_CAPABILITIES_HPP | ||
|
||
#include <iostream> | ||
#include <cstdint> | ||
#include <arm_neon.h> // For SIMD support | ||
|
||
class RegPrints { | ||
public: | ||
// Print general-purpose registers | ||
static void print_gpr(const uint64_t& reg_value, const char* reg_name) { | ||
std::cout << "Register " << reg_name << ": " << std::hex << reg_value << std::endl; | ||
} | ||
|
||
// Print vector registers (SIMD) | ||
static void print_simd(const float32x4_t& reg_value, const char* reg_name) { | ||
float values[4]; | ||
vst1q_f32(values, reg_value); // Store SIMD register into an array | ||
std::cout << "SIMD Register " << reg_name << ": [" | ||
<< values[0] << ", " << values[1] << ", " | ||
<< values[2] << ", " << values[3] << "]" << std::endl; | ||
} | ||
}; | ||
|
||
#endif // DEBUG_CAPABILITIES_HPP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters