[Openmp-commits] [PATCH] D41482: AArch64: add required arch specific code for running OMPT test cases

Paul Osmialowski via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Thu Dec 21 04:34:20 PST 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL321258: [AArch64] add required arch specific code for running OMPT test cases (authored by pawosm01, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D41482?vs=127844&id=127862#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D41482

Files:
  openmp/trunk/runtime/test/ompt/callback.h


Index: openmp/trunk/runtime/test/ompt/callback.h
===================================================================
--- openmp/trunk/runtime/test/ompt/callback.h
+++ openmp/trunk/runtime/test/ompt/callback.h
@@ -105,6 +105,12 @@
 #define print_possible_return_addresses(addr) \
   printf("%" PRIu64 ": current_address=%p\n", ompt_get_thread_data()->value, \
          ((char *)addr) - 8)
+#elif KMP_ARCH_AARCH64
+// 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)
 #else
 #error Unsupported target architecture, cannot determine address offset!
 #endif


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41482.127862.patch
Type: text/x-patch
Size: 813 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20171221/0f4bfaae/attachment.bin>


More information about the Openmp-commits mailing list