Commits

Anonymous committed 7aab54c

In cmp_op helper, let cmp_op handle int vs float instead of emitting
fcmpu directly.

Comments (0)

Files changed (1)

pypy/jit/backend/ppc/helper/assembler.py

     def f(self, op, arglocs, regalloc):
         l0, l1, res = arglocs
         # do the comparison
-        if fp == True:
-            self.mc.fcmpu(0, l0.value, l1.value)
-        else:
-            self.mc.cmp_op(0, l0.value, l1.value,
-                           imm=l1.is_imm(), signed=signed)
+        self.mc.cmp_op(0, l0.value, l1.value,
+                       imm=l1.is_imm(), signed=signed, fp=fp)
         # After the comparison, place the result
         # in the first bit of the CR
         if condition == c.LT or condition == c.U_LT: