Skip to content

Commit 91dead1

Browse files
committed
fixup! Add openmp support to System z: Add an extra print_possible_return_addresses() case
1 parent a3d8559 commit 91dead1

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

openmp/runtime/test/ompt/callback.h

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,10 +232,18 @@ ompt_label_##id:
232232
// On s390x the NOP instruction is 2 bytes long. For non-void runtime
233233
// functions Clang inserts a STY instruction (but only if compiling under
234234
// -fno-PIC which will be the default with Clang 8.0, another 6 bytes).
235+
//
236+
// Another possibility is:
237+
//
238+
// brasl %r14,__kmpc_end_master@plt
239+
// a7 f4 00 02 j 0f
240+
// 47 00 00 00 0: nop
241+
// a7 f4 00 02 j addr
242+
// addr:
235243
#define print_possible_return_addresses(addr) \
236-
printf("%" PRIu64 ": current_address=%p or %p\n", \
244+
printf("%" PRIu64 ": current_address=%p or %p or %p\n", \
237245
ompt_get_thread_data()->value, ((char *)addr) - 2, \
238-
((char *)addr) - 8)
246+
((char *)addr) - 8, ((char *)addr) - 12)
239247
#else
240248
#error Unsupported target architecture, cannot determine address offset!
241249
#endif

0 commit comments

Comments
 (0)