summaryrefslogtreecommitdiffstats
path: root/openmp/runtime/src/z_Linux_asm.S
diff options
context:
space:
mode:
authorAndreyChurbanov <andrey.churbanov@intel.com>2019-11-19 19:45:06 +0300
committerAndreyChurbanov <andrey.churbanov@intel.com>2019-11-19 19:45:06 +0300
commit3a76b8a538c0d20efe823f03a133c778e842270e (patch)
treedcfa4411af006befb0a6d9103122e684e5c7ab04 /openmp/runtime/src/z_Linux_asm.S
parent4f7dce78c2372615b306435ba3d02ec684a6761c (diff)
downloadbcm5719-llvm-3a76b8a538c0d20efe823f03a133c778e842270e.tar.gz
bcm5719-llvm-3a76b8a538c0d20efe823f03a133c778e842270e.zip
Fix openmp on PowerPC64-BE-ELFv2 ABI on FreeBSD.
Patch by adalava (Alfredo Dal'Ava J.nior) Differential Revision: https://reviews.llvm.org/D67190
Diffstat (limited to 'openmp/runtime/src/z_Linux_asm.S')
-rw-r--r--openmp/runtime/src/z_Linux_asm.S14
1 files changed, 7 insertions, 7 deletions
diff --git a/openmp/runtime/src/z_Linux_asm.S b/openmp/runtime/src/z_Linux_asm.S
index b491fcf186a..8090ff759fe 100644
--- a/openmp/runtime/src/z_Linux_asm.S
+++ b/openmp/runtime/src/z_Linux_asm.S
@@ -1367,12 +1367,12 @@ KMP_LABEL(kmp_1):
// return: r3 (always 1/TRUE)
//
.text
-# if KMP_ARCH_PPC64_LE
+# if KMP_ARCH_PPC64_ELFv2
.abiversion 2
# endif
.globl __kmp_invoke_microtask
-# if KMP_ARCH_PPC64_LE
+# if KMP_ARCH_PPC64_ELFv2
.p2align 4
# else
.p2align 2
@@ -1380,7 +1380,7 @@ KMP_LABEL(kmp_1):
.type __kmp_invoke_microtask,@function
-# if KMP_ARCH_PPC64_LE
+# if KMP_ARCH_PPC64_ELFv2
__kmp_invoke_microtask:
.Lfunc_begin0:
.Lfunc_gep0:
@@ -1424,7 +1424,7 @@ __kmp_invoke_microtask:
.cfi_offset lr, 16
// Compute the size necessary for the local stack frame.
-# if KMP_ARCH_PPC64_LE
+# if KMP_ARCH_PPC64_ELFv2
li 12, 72
# else
li 12, 88
@@ -1502,7 +1502,7 @@ __kmp_invoke_microtask:
// for the microtask begins 48 + 8*8 == 112 bytes above r1 for ELFv1 and
// 32 + 8*8 == 96 bytes above r1 for ELFv2.
addi 4, 4, 40
-# if KMP_ARCH_PPC64_LE
+# if KMP_ARCH_PPC64_ELFv2
addi 12, 1, 88
# else
addi 12, 1, 104
@@ -1514,7 +1514,7 @@ __kmp_invoke_microtask:
bdnz .Lnext
.Lcall:
-# if KMP_ARCH_PPC64_LE
+# if KMP_ARCH_PPC64_ELFv2
std 2, 24(1)
mr 12, 3
#else
@@ -1530,7 +1530,7 @@ __kmp_invoke_microtask:
mtctr 12
bctrl
-# if KMP_ARCH_PPC64_LE
+# if KMP_ARCH_PPC64_ELFv2
ld 2, 24(1)
# else
ld 2, 40(1)
OpenPOWER on IntegriCloud