Skip to content

Commit eacec22

Browse files
committed
fix failed ompt test on M1 device
1 parent 9208065 commit eacec22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

openmp/runtime/test/ompt/callback.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,8 @@ ompt_label_##id:
190190
// On AArch64 the NOP instruction is 4 bytes long, can be followed by inserted
191191
// store instruction (another 4 bytes long).
192192
#define print_possible_return_addresses(addr) \
193-
printf("%" PRIu64 ": current_address=%p or %p\n", ompt_get_thread_data()->value, \
194-
((char *)addr) - 4, ((char *)addr) - 8)
193+
printf("%" PRIu64 ": current_address=%p or %p or %p\n", ompt_get_thread_data()->value, \
194+
((char *)addr) - 4, ((char *)addr) - 8, ((char *)addr) - 12)
195195
#elif KMP_ARCH_RISCV64
196196
#if __riscv_compressed
197197
// On RV64GC the C.NOP instruction is 2 byte long. In addition, the compiler

0 commit comments

Comments
 (0)