[Openmp-commits] [openmp] [NFC] fix failed ompt tests on M1 device (PR #65696)

Shilei Tian via Openmp-commits openmp-commits at lists.llvm.org
Thu Sep 7 16:41:51 PDT 2023


================
@@ -190,8 +190,8 @@ ompt_label_##id:
 // On AArch64 the NOP instruction is 4 bytes long, can be followed by inserted
 // store instruction (another 4 bytes long).
 #define print_possible_return_addresses(addr) \
-  printf("%" PRIu64 ": current_address=%p or %p\n", ompt_get_thread_data()->value, \
-         ((char *)addr) - 4, ((char *)addr) - 8)
+  printf("%" PRIu64 ": current_address=%p or %p or %p\n", ompt_get_thread_data()->value, \
----------------
shiltian wrote:

We probably want to limit this to macos only, so it might be a good idea to guard it with proper macros.

https://github.com/llvm/llvm-project/pull/65696


More information about the Openmp-commits mailing list