summaryrefslogtreecommitdiff
path: root/runtime/powerpc/i64_scmp.s
diff options
context:
space:
mode:
authorGravatar xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2013-04-21 16:13:55 +0000
committerGravatar xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2013-04-21 16:13:55 +0000
commit9b2190b382036354e4ff7026d2cd8f3f4fe8337d (patch)
tree3a3c9d6dc424e2c5dae0b09124ecb56ba9c95e09 /runtime/powerpc/i64_scmp.s
parent468f0c4407895557ca8089430f894a85f06afe97 (diff)
Fixes in PowerPC port
git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@2209 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e
Diffstat (limited to 'runtime/powerpc/i64_scmp.s')
-rw-r--r--runtime/powerpc/i64_scmp.s8
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/powerpc/i64_scmp.s b/runtime/powerpc/i64_scmp.s
index 8963006..87811e0 100644
--- a/runtime/powerpc/i64_scmp.s
+++ b/runtime/powerpc/i64_scmp.s
@@ -36,11 +36,11 @@
.text
-### Unsigned comparison
+### Signed comparison
.balign 16
- .globl __i64_ucmp
-__i64_ucmp:
+ .globl __i64_scmp
+__i64_scmp:
cmpw cr0, r3, r5 # compare high words (signed)
cmplw cr1, r4, r6 # compare low words (unsigned)
mfcr r0
@@ -67,6 +67,6 @@ __i64_ucmp:
# = 0 if X = Y
blr
.type __i64_scmp, @function
- .size __i64_scmp, .-__i64_ucmp
+ .size __i64_scmp, .-__i64_scmp
\ No newline at end of file