[pypy-commit] pypy jitframe-on-heap: Remove redundant-by-now test

fijal noreply at buildbot.pypy.org
Fri Jan 25 13:03:13 CET 2013


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: jitframe-on-heap
Changeset: r60445:c9b557589c3c
Date: 2013-01-25 14:02 +0200
http://bitbucket.org/pypy/pypy/changeset/c9b557589c3c/

Log:	Remove redundant-by-now test

diff --git a/rpython/jit/backend/x86/test/test_zrpy_platform.py b/rpython/jit/backend/x86/test/test_zrpy_platform.py
deleted file mode 100644
--- a/rpython/jit/backend/x86/test/test_zrpy_platform.py
+++ /dev/null
@@ -1,95 +0,0 @@
-import sys
-import py
-from rpython.rtyper.lltypesystem import lltype, rffi
-from rpython.rlib import jit
-from rpython.jit.backend.x86.test.test_zrpy_gc import compile_and_run
-
-from rpython.jit.metainterp import pyjitpl
-
-#pyjitpl.DEBUG = 4
-
-
-def test_stack_alignment():
-    # we can detect gcc 4.5.0 to test those as well
-    if sys.platform != 'darwin':
-        py.test.skip("tests darwin only stack alignment requirements")
-        
-    externs = ["""
-extern void check0();
-extern void check1(int);
-extern void check2(int, int);
-extern void check3(int, int, int);
-"""]
-    c_source = r"""
-#include <stdio.h>
-    
-void check0() {
-    void *ip = __builtin_return_address(0);
-    void *fp = __builtin_frame_address(0);
-    printf("0 %p %p %u\n", ip, fp, (unsigned)fp % 16);
-}
-
-void check1(int a) {
-    void *ip = __builtin_return_address(0);
-    void *fp = __builtin_frame_address(0);
-    printf("1 %p %p %u\n", ip, fp, (unsigned)fp % 16);
-}
-
-void check2(int a, int b) {
-    void *ip = __builtin_return_address(0);
-    void *fp = __builtin_frame_address(0);
-    printf("2 %p %p %u\n", ip, fp, (unsigned)fp % 16);
-}
-
-void check3(int a, int b, int c) {
-    void *ip = __builtin_return_address(0);
-    void *fp = __builtin_frame_address(0);
-    printf("3 %p %p %u\n", ip, fp, (unsigned)fp % 16);
-}
-"""
-    
-    eci = rffi.ExternalCompilationInfo(separate_module_sources=[c_source],
-                  post_include_bits = externs,
-                  # not ideal, would like to apply this only to the checkX
-                  # functions
-                  compile_extra=["-fno-omit-frame-pointer"])
-
-    check0 = rffi.llexternal('check0', [], lltype.Void,
-                             compilation_info=eci,
-                             _nowrapper=True)
-    check1 = rffi.llexternal('check1', [lltype.Signed], lltype.Void,
-                             compilation_info=eci,
-                             _nowrapper=True)
-    check2 = rffi.llexternal('check2', [lltype.Signed, lltype.Signed],
-                             lltype.Void,
-                             compilation_info=eci,
-                             _nowrapper=True)
-    
-    check3 = rffi.llexternal('check3', [lltype.Signed, lltype.Signed,
-                                        lltype.Signed],
-                             lltype.Void,
-                             compilation_info=eci,
-                             _nowrapper=True)            
-    
-    myjitdriver = jit.JitDriver(greens = [], reds = ['n'])
-
-    def entrypoint(argv):
-        jit.set_param(myjitdriver, 'threshold', 2)
-        jit.set_param(myjitdriver, 'trace_eagerness', 0)
-        n = 16
-        while n > 0:
-            myjitdriver.can_enter_jit(n=n)
-            myjitdriver.jit_merge_point(n=n)
-            n -= 1
-            check0()
-            check1(0)
-            check2(0, 1)
-            check3(0, 1, 2)
-        return 0
-
-    output = compile_and_run(entrypoint, 'boehm', jit=True)
-    for line in output.splitlines():
-        print line
-        # ret ip + bp == 8
-        assert int(line.split()[-1]) == 8
-


More information about the pypy-commit mailing list