summaryrefslogtreecommitdiff
path: root/openmp/runtime
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2023-02-10 00:40:48 +0200
committerMartin Storsjö <martin@martin.st>2023-02-11 00:03:13 +0200
commit89197b59f597995ecb6b6dc2e262a1ecddeee901 (patch)
tree4a56053f19761f0b11633aaceeb18692073ee190 /openmp/runtime
parent3de0bc4c3d0284354b0c0ec8ca1536ee080193e2 (diff)
downloadllvm-89197b59f597995ecb6b6dc2e262a1ecddeee901.tar.gz
[openmp] Fix building z_Linux_asm.S for armv5t
Don't use the ldrd instruction; that one requires armv5te. Instead do two separate loads (or only one if OMPT_SUPPORT isn't defined). This should fix https://github.com/llvm/llvm-project/issues/60370. Differential Revision: https://reviews.llvm.org/D143683
Diffstat (limited to 'openmp/runtime')
-rw-r--r--openmp/runtime/src/z_Linux_asm.S5
1 files changed, 4 insertions, 1 deletions
diff --git a/openmp/runtime/src/z_Linux_asm.S b/openmp/runtime/src/z_Linux_asm.S
index 557f3784b3c4..8aa48d10c3af 100644
--- a/openmp/runtime/src/z_Linux_asm.S
+++ b/openmp/runtime/src/z_Linux_asm.S
@@ -1426,7 +1426,10 @@ __tid = 8
// for when we call pkfn below
push {r3-r11,lr}
// Load p_argv and &exit_frame
- ldrd r4, r5, [sp, #10*4]
+ ldr r4, [sp, #10*4]
+# if OMPT_SUPPORT
+ ldr r5, [sp, #11*4]
+# endif
# if KMP_OS_DARWIN || (defined(__thumb__) && !KMP_OS_WINDOWS)
# define FP r7