[pypy-commit] pypy ppc-backend-2: Use is_fp_reg() in AssemblerLocation. Start emit_call float support.
edelsohn
noreply at buildbot.pypy.org
Mon Apr 23 23:35:39 CEST 2012
Author: edelsohn
Branch: ppc-backend-2
Changeset: r54698:08ea7f321551
Date: 2012-04-23 17:35 -0400
http://bitbucket.org/pypy/pypy/changeset/08ea7f321551/
Log: Use is_fp_reg() in AssemblerLocation. Start emit_call float support.
diff --git a/pypy/jit/backend/ppc/locations.py b/pypy/jit/backend/ppc/locations.py
--- a/pypy/jit/backend/ppc/locations.py
+++ b/pypy/jit/backend/ppc/locations.py
@@ -23,7 +23,7 @@
def is_reg(self):
return False
- def is_vfp_reg(self):
+ def is_fp_reg(self):
return False
def is_imm_float(self):
diff --git a/pypy/jit/backend/ppc/opassembler.py b/pypy/jit/backend/ppc/opassembler.py
--- a/pypy/jit/backend/ppc/opassembler.py
+++ b/pypy/jit/backend/ppc/opassembler.py
@@ -503,17 +503,18 @@
for i in range(reg_args):
arg = arglocs[i]
if arg.type == FLOAT and count % 2 != 0:
- assert 0, "not implemented yet"
+ num += 1
+ count = 0
reg = r.PARAM_REGS[num]
if arg.type == FLOAT:
- assert 0, "not implemented yet"
+ float_locs.append((arg, reg))
else:
non_float_locs.append(arg)
non_float_regs.append(reg)
if arg.type == FLOAT:
- assert 0, "not implemented yet"
+ num += 1
else:
num += 1
count += 1
More information about the pypy-commit
mailing list