[pypy-svn] r46740 - in pypy/dist/pypy/translator: cli js jvm llvm

cfbolz at codespeak.net cfbolz at codespeak.net
Wed Sep 19 17:59:50 CEST 2007


Author: cfbolz
Date: Wed Sep 19 17:59:48 2007
New Revision: 46740

Modified:
   pypy/dist/pypy/translator/cli/opcodes.py
   pypy/dist/pypy/translator/js/opcodes.py
   pypy/dist/pypy/translator/jvm/opcodes.py
   pypy/dist/pypy/translator/llvm/opwriter.py
Log:
issue311 testing
remove float_pow support from backends


Modified: pypy/dist/pypy/translator/cli/opcodes.py
==============================================================================
--- pypy/dist/pypy/translator/cli/opcodes.py	(original)
+++ pypy/dist/pypy/translator/cli/opcodes.py	Wed Sep 19 17:59:48 2007
@@ -164,7 +164,6 @@
     'float_ne':                 _not('ceq'),
     'float_gt':                 'cgt',
     'float_ge':                 _not('clt'),
-    'float_pow':                [PushAllArgs, 'call float64 [mscorlib]System.Math::Pow(float64, float64)'],
    
     'llong_is_true':            [PushAllArgs, 'ldc.i8 0', 'cgt.un'],
     'llong_neg':                'neg',

Modified: pypy/dist/pypy/translator/js/opcodes.py
==============================================================================
--- pypy/dist/pypy/translator/js/opcodes.py	(original)
+++ pypy/dist/pypy/translator/js/opcodes.py	Wed Sep 19 17:59:48 2007
@@ -104,7 +104,6 @@
     'int_invert': [PushAllArgs,_Prefix('~')],
     'float_neg': [PushAllArgs,_Prefix('-')],
         
-    'float_pow': [PushAllArgs,_CastFun('Math.pow',2)],
     'int_abs': [PushAllArgs,_CastFun('Math.abs',1)],
     'float_abs': [PushAllArgs,_CastFun('Math.abs',1)],
 

Modified: pypy/dist/pypy/translator/jvm/opcodes.py
==============================================================================
--- pypy/dist/pypy/translator/jvm/opcodes.py	(original)
+++ pypy/dist/pypy/translator/jvm/opcodes.py	Wed Sep 19 17:59:48 2007
@@ -162,7 +162,6 @@
     'float_sub':                jvmgen.DSUB,
     'float_mul':                jvmgen.DMUL,
     'float_truediv':            jvmgen.DDIV,
-    'float_pow':                jvmgen.MATHDPOW,
     'float_lt':                 'dbl_less_than',     
     'float_le':                 'dbl_less_equals',   
     'float_eq':                 'dbl_equals',        

Modified: pypy/dist/pypy/translator/llvm/opwriter.py
==============================================================================
--- pypy/dist/pypy/translator/llvm/opwriter.py	(original)
+++ pypy/dist/pypy/translator/llvm/opwriter.py	Wed Sep 19 17:59:48 2007
@@ -180,13 +180,6 @@
         # XXX could do something about assertions
         pass
 
-    def int_pow(self, opr):
-        self._generic_pow(opr, "1") 
-    uint_pow = int_pow
-    
-    def float_pow(self, opr):
-        self._generic_pow(opr, "1.0") 
-
     def _generic_neg(self, opr, zerostr): 
         self.codewriter.binaryop("sub", opr.retref, opr.argtypes[0],
                                  zerostr, opr.argrefs[0])



More information about the Pypy-commit mailing list