MCPcopy Create free account
hub / github.com/VcDevel/std-simd / __debug_instr_ptr

Function __debug_instr_ptr

experimental/bits/simd_debug.h:101–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99#endif // _GLIBCXX_SIMD_ENABLE_DEBUG
100
101_GLIBCXX_SIMD_ALWAYS_INLINE void *__debug_instr_ptr()
102{
103 void* __ip = nullptr;
104#if defined _GLIBCXX_SIMD_ENABLE_DEBUG
105#ifdef __x86_64__
106 asm volatile("lea 0(%%rip),%0" : "=r"(__ip));
107#elif defined __i386__
108 asm volatile("1: movl $1b,%0" : "=r"(__ip));
109#elif defined __arm__
110 asm volatile("mov %0,pc" : "=r"(__ip));
111#elif defined __aarch64__
112 asm volatile("adr %0,." : "=r"(__ip));
113#endif
114#endif //__GNUC__
115 return __ip;
116}
117
118template <__area> class __debug_stream;
119

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected