[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 01:29:12 PST 2017
pawosm01 created this revision.
pawosm01 added a reviewer: Hahnfeld.
Herald added subscribers: openmp-commits, kristof.beyls, rengolin, aemerson.
Repository:
rOMP OpenMP
https://reviews.llvm.org/D41482
Files:
runtime/test/ompt/callback.h
Index: runtime/test/ompt/callback.h
===================================================================
--- runtime/test/ompt/callback.h
+++ 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.127844.patch
Type: text/x-patch
Size: 774 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20171221/d479d039/attachment-0001.bin>
More information about the Openmp-commits
mailing list