[pypy-svn] r50748 - pypy/dist/pypy/jit/codegen/i386/test
arigo at codespeak.net
arigo at codespeak.net
Fri Jan 18 14:58:22 CET 2008
Author: arigo
Date: Fri Jan 18 14:58:21 2008
New Revision: 50748
Modified:
pypy/dist/pypy/jit/codegen/i386/test/test_auto_encoding.py
Log:
Fix test.
Modified: pypy/dist/pypy/jit/codegen/i386/test/test_auto_encoding.py
==============================================================================
--- pypy/dist/pypy/jit/codegen/i386/test/test_auto_encoding.py (original)
+++ pypy/dist/pypy/jit/codegen/i386/test/test_auto_encoding.py Fri Jan 18 14:58:21 2008
@@ -213,6 +213,11 @@
if instrname in ('MOVZX', 'MOVSX'):
if args[1][1].width == 4:
return []
+ if instrname == "TEST":
+ if (args[0] != args[1] and
+ isinstance(args[0][1], i386.REG) and
+ isinstance(args[1][1], i386.REG)):
+ return [] # TEST reg1, reg2 <=> TEST reg2, reg1
if instrname == 'o16' or instrname.endswith('cond'):
return []
return [args]
More information about the Pypy-commit
mailing list