aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/powerpc/i64_sar.s
diff options
context:
space:
mode:
authorBernhard Schommer <bernhardschommer@gmail.com>2017-08-25 14:55:22 +0200
committerBernhard Schommer <bernhardschommer@gmail.com>2017-08-25 14:55:22 +0200
commit4affb2b02e486681b39add0dbaf4f873a91885c8 (patch)
tree06b045ee98934b00c341071758c9b905ecad057f /runtime/powerpc/i64_sar.s
parent95ed4ea7df3e4b05d623afb9cb65f0eb2653361b (diff)
downloadcompcert-kvx-4affb2b02e486681b39add0dbaf4f873a91885c8.tar.gz
compcert-kvx-4affb2b02e486681b39add0dbaf4f873a91885c8.zip
Prefixed runtime functions.
The runtime functions are prefixed with compcert in order to avoid potential clashes with runtime/builtin functions of other compilers. Bug 22062
Diffstat (limited to 'runtime/powerpc/i64_sar.s')
-rw-r--r--runtime/powerpc/i64_sar.s8
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/powerpc/i64_sar.s b/runtime/powerpc/i64_sar.s
index 0fd410d4..c7da448f 100644
--- a/runtime/powerpc/i64_sar.s
+++ b/runtime/powerpc/i64_sar.s
@@ -39,8 +39,8 @@
# Shift right signed
.balign 16
- .globl __i64_sar
-__i64_sar:
+ .globl __compcert_i64_sar
+__compcert_i64_sar:
andi. r5, r5, 63 # take amount modulo 64
cmpwi r5, 32
bge 1f # amount < 32?
@@ -54,7 +54,7 @@ __i64_sar:
sraw r4, r3, r6 # RL = XH >>s (amount - 32)
srawi r3, r3, 31 # RL = sign extension of XH
blr
- .type __i64_sar, @function
- .size __i64_sar, .-__i64_sar
+ .type __compcert_i64_sar, @function
+ .size __compcert_i64_sar, .-__compcert_i64_sar
\ No newline at end of file