[pypy-dev] jit.backend.test.test_random

2011-04-10 Thread Matthew Woodcraft
I found that pypy.jit.backend.test.test_random is failing if I pass
--backend=x86

The following patch fixes it for me:

--- a/pypy/jit/backend/test/test_random.py
+++ b/pypy/jit/backend/test/test_random.py
@@ -717,6 +717,7 @@
 def test_random_function(BuilderClass=OperationBuilder):
 r = Random()
 cpu = get_cpu()
+cpu.setup_once()
 if pytest.config.option.repeat == -1:
 while 1:
 check_random_function(cpu, BuilderClass, r)

-M-
___
pypy-dev@codespeak.net
http://codespeak.net/mailman/listinfo/pypy-dev


[pypy-dev] Ignore 'pinsrb/w/d' instructions in trackgcroot

2011-04-17 Thread Matthew Woodcraft
I found I needed the following patch in order to run translation with
gcc 4.6 and -march=corei7.

-M-


--- a/pypy/translator/c/gcc/trackgcroot.py
+++ b/pypy/translator/c/gcc/trackgcroot.py
@@ -456,7 +456,7 @@ class FunctionGcRootTracker(object):
 'inc', 'dec', 'not', 'neg', 'or', 'and', 'sbb', 'adc',
 'shl', 'shr', 'sal', 'sar', 'rol', 'ror', 'mul', 'imul', 'div', 'idiv',
 'bswap', 'bt', 'rdtsc',
-'punpck', 'pshufd', 'pcmp', 'pand', 'psllw', 'pslld', 'psllq',
+'punpck', 'pshufd', 'pcmp', 'pand', 'psllw', 'pslld', 'psllq', 'pinsr',
 # zero-extending moves should not produce GC pointers
 'movz', 
 ])
___
pypy-dev@codespeak.net
http://codespeak.net/mailman/listinfo/pypy-dev