| 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 | |
| 118 | template <__area> class __debug_stream; |
| 119 |
nothing calls this directly
no outgoing calls
no test coverage detected