Author: edelsohn
Branch: ppc-jit-backend
Changeset: r56190:7aab54cc71d1
Date: 2012-07-18 14:05 -0400
http://bitbucket.org/pypy/pypy/changeset/7aab54cc71d1/
Log: In cmp_op helper, let cmp_op handle int vs float instead of emitting
fcmpu directly.
diff --git a/pypy/jit/backend/ppc/helper/assembler.py
b/pypy/jit/backend/ppc/helper/assembler.py
--- a/pypy/jit/backend/ppc/helper/assembler.py
+++ b/pypy/jit/backend/ppc/helper/assembler.py
@@ -10,11 +10,8 @@
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:
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit