[pypy-svn] r53214 - pypy/branch/jit-hotpath/pypy/jit/codegen/i386/test
fijal at codespeak.net
fijal at codespeak.net
Mon Mar 31 23:08:10 CEST 2008
Author: fijal
Date: Mon Mar 31 23:08:09 2008
New Revision: 53214
Modified:
pypy/branch/jit-hotpath/pypy/jit/codegen/i386/test/test_auto_encoding.py
Log:
Evil hack. Please look how we can go about this.
Modified: pypy/branch/jit-hotpath/pypy/jit/codegen/i386/test/test_auto_encoding.py
==============================================================================
--- pypy/branch/jit-hotpath/pypy/jit/codegen/i386/test/test_auto_encoding.py (original)
+++ pypy/branch/jit-hotpath/pypy/jit/codegen/i386/test/test_auto_encoding.py Mon Mar 31 23:08:09 2008
@@ -85,6 +85,9 @@
def modrm_tests():
return i386.registers + [pick1(i386.memSIB) for i in range(COUNT2)]
+def modrm_noreg_tests():
+ return [pick1(i386.memSIB) for i in range(COUNT2)]
+
def modrm64_tests():
return [pick1(i386.memSIB64) for i in range(COUNT2)]
@@ -187,7 +190,11 @@
def rec_test_all(instrname, modes, args=[]):
if modes:
m = modes[0]
- lst = tests[m]()
+ # XXX evil hack
+ if instrname.startswith('F') and m is i386.MODRM:
+ lst = modrm_noreg_tests()
+ else:
+ lst = tests[m]()
random.shuffle(lst)
result = []
for extra in lst:
More information about the Pypy-commit
mailing list