diff options
author | Bernhard Schommer <bernhardschommer@gmail.com> | 2017-08-25 14:55:22 +0200 |
---|---|---|
committer | Bernhard Schommer <bernhardschommer@gmail.com> | 2017-08-25 14:55:22 +0200 |
commit | 4affb2b02e486681b39add0dbaf4f873a91885c8 (patch) | |
tree | 06b045ee98934b00c341071758c9b905ecad057f /runtime/powerpc/i64_smod.s | |
parent | 95ed4ea7df3e4b05d623afb9cb65f0eb2653361b (diff) | |
download | compcert-4affb2b02e486681b39add0dbaf4f873a91885c8.tar.gz compcert-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_smod.s')
-rw-r--r-- | runtime/powerpc/i64_smod.s | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/runtime/powerpc/i64_smod.s b/runtime/powerpc/i64_smod.s index df6bfd8e..6b4e1f89 100644 --- a/runtime/powerpc/i64_smod.s +++ b/runtime/powerpc/i64_smod.s @@ -39,8 +39,8 @@ ## Signed remainder .balign 16 - .globl __i64_smod -__i64_smod: + .globl __compcert_i64_smod +__compcert_i64_smod: mflr r0 stw r0, 4(r1) # save return address in caller's frame mtctr r3 # save sign of result in CTR (sign of N) @@ -54,7 +54,7 @@ __i64_smod: xor r5, r5, r0 subfc r6, r0, r6 subfe r5, r0, r5 - bl __i64_udivmod # do unsigned division + bl __compcert_i64_udivmod # do unsigned division lwz r0, 4(r1) mtlr r0 # restore return address mfctr r0 @@ -64,7 +64,7 @@ __i64_smod: subfc r4, r0, r4 subfe r3, r0, r3 blr - .type __i64_smod, @function - .size __i64_smod, .-__i64_smod + .type __compcert_i64_smod, @function + .size __compcert_i64_smod, .-__compcert_i64_smod
\ No newline at end of file |