[pypy-commit] pypy emit-call-arm: swap checks

bivab noreply at buildbot.pypy.org
Fri May 24 09:49:58 CEST 2013


Author: David Schneider <david.schneider at picle.org>
Branch: emit-call-arm
Changeset: r64531:37592fdca826
Date: 2013-05-23 15:34 -0500
http://bitbucket.org/pypy/pypy/changeset/37592fdca826/

Log:	swap checks

diff --git a/rpython/jit/backend/arm/assembler.py b/rpython/jit/backend/arm/assembler.py
--- a/rpython/jit/backend/arm/assembler.py
+++ b/rpython/jit/backend/arm/assembler.py
@@ -1438,12 +1438,12 @@
         return shiftsize
 
     def simple_call(self, fnloc, arglocs, result_loc=r.r0):
-        if result_loc.is_vfp_reg():
+        if result_loc is None:
+            result_type = VOID
+            result_size = 0
+        elif result_loc.is_vfp_reg():
             result_type = FLOAT
             result_size = DOUBLE_WORD
-        elif result_loc is None:
-            result_type = VOID
-            result_size = 0
         else:
             result_type = INT
             result_size = WORD


More information about the pypy-commit mailing list