[pypy-commit] pypy ppc-backend-2: (edelsohn, bivab): Add FP support to cmp_op.

edelsohn noreply at buildbot.pypy.org
Tue Jun 5 18:17:07 CEST 2012


Author: edelsohn
Branch: ppc-backend-2
Changeset: r55416:733ce9417ed7
Date: 2012-06-05 12:12 -0400
http://bitbucket.org/pypy/pypy/changeset/733ce9417ed7/

Log:	(edelsohn, bivab): Add FP support to cmp_op.

diff --git a/pypy/jit/backend/ppc/codebuilder.py b/pypy/jit/backend/ppc/codebuilder.py
--- a/pypy/jit/backend/ppc/codebuilder.py
+++ b/pypy/jit/backend/ppc/codebuilder.py
@@ -1174,8 +1174,10 @@
         self._copy_to_raw_memory(addr)
         self.flush_cache(addr)
 
-    def cmp_op(self, block, a, b, imm=False, signed=True):
-        if IS_PPC_32:
+    def cmp_op(self, block, a, b, imm=False, signed=True, fp=False):
+        if fp == True:
+            self.fcmpu(block, a, b)
+        elif IS_PPC_32:
             if signed:
                 if imm:
                     # 32 bit immediate signed


More information about the pypy-commit mailing list