Skip to content

Commit e94ab14

Browse files
[OpenMP][AArch64] Fix frame pointer save in microtask
When OMPT is enabled, the stack pointer was not saved to frame pointer register immediately after storing the frame pointer to the stack. Therefore the frame pointers did not constitute a proper chain.
1 parent 1c837ec commit e94ab14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

openmp/runtime/src/z_Linux_asm.S

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1360,10 +1360,10 @@ __tid = 8
13601360
PROC __kmp_invoke_microtask
13611361
PACBTI_C
13621362

1363-
stp x29, x30, [sp, #-16]!
13641363
# if OMPT_SUPPORT
13651364
stp x19, x20, [sp, #-16]!
13661365
# endif
1366+
stp x29, x30, [sp, #-16]!
13671367
mov x29, sp
13681368

13691369
orr w9, wzr, #1
@@ -1417,11 +1417,11 @@ KMP_LABEL(kmp_1):
14171417
blr x8
14181418
orr w0, wzr, #1
14191419
mov sp, x29
1420+
ldp x29, x30, [sp], #16
14201421
# if OMPT_SUPPORT
14211422
str xzr, [x19]
14221423
ldp x19, x20, [sp], #16
14231424
# endif
1424-
ldp x29, x30, [sp], #16
14251425
PACBTI_RET
14261426
ret
14271427

0 commit comments

Comments
 (0)