Home - Summaries: (main) : (py3.11) : (py3.12) : Everything - Nightly builds - Benchmarks - RPython - Builders - About

jit/backend/x86/test/test_rx86_64_auto_encoding.py::TestRx86_64::()::test_all::[322]

self = <rpython.jit.backend.x86.test.test_rx86_64_auto_encoding.TestRx86_64 object at 0x000000000fffae20>
methname = 'MOVUPS_sx'

    def complete_test(self, methname):
        if '_' in methname:
            instrname, argmodes = methname.split('_')
        else:
            instrname, argmodes = methname, ''
    
        if self.should_skip_instruction(instrname, argmodes) or \
           self.should_skip_instruction_bit32(instrname, argmodes):
            print "Skipping %s" % methname
            return
    
        # XXX: ugly way to deal with the differences between 32 and 64 bit
        if not hasattr(self.X86_CodeBuilder, methname):
            return
    
        # XXX: hack hack hack
        if methname == 'WORD':
            return
    
        if instrname.endswith('8'):
            instrname = instrname[:-1]
            if instrname == 'MOVSX' or instrname == 'MOVZX':
                instr_suffix = 'b' + suffixes[self.WORD]
                instrname = instrname[:-1]
                if argmodes[1] == 'r':
                    argmodes = [argmodes[0], 'r8']
            else:
                instr_suffix = 'b'
                realargmodes = []
                for mode in argmodes:
                    if mode == 'r':
                        mode = 'r8'
                    elif mode == 'i':
                        mode = 'i8'
                    realargmodes.append(mode)
                argmodes = realargmodes
        elif instrname == 'CALL' or instrname == 'JMP':
            instr_suffix = suffixes[self.WORD] + ' *'
        else:
            instr_suffix = None
    
        if instrname.find('EXTR') != -1 or \
           instrname.find('INSR') != -1 or \
           instrname.find('INSERT') != -1 or \
           instrname.find('EXTRACT') != -1 or \
           instrname.find('SRLDQ') != -1 or \
           instrname.find('SHUF') != -1 or \
           instrname.find('PBLEND') != -1 or \
           instrname.find('CMPP') != -1:
            realargmodes = []
            for mode in argmodes:
                if mode == 'i':
                    mode = 'i8'
                realargmodes.append(mode)
            argmodes = realargmodes
    
        print "Testing %s with argmodes=%r" % (instrname, argmodes)
        self.methname = methname
        self.is_xmm_insn = getattr(getattr(self.X86_CodeBuilder,
                                           methname), 'is_xmm_insn', False)
        ilist = self.make_all_tests(methname, argmodes)
        oplist, as_code = self.run_test(methname, instrname, argmodes, ilist,
>                                       instr_suffix)

jit/backend/x86/test/test_rx86_32_auto_encoding.py:422: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
jit/backend/x86/test/test_rx86_32_auto_encoding.py:254: in run_test
    (self.WORD*8, inputname, filename), 'r')
/opt/pypy2.7-v7.3.23-linux64/lib-python/2.7/os.py:713: in popen4
    stderr=subprocess.STDOUT, close_fds=True)
/opt/pypy2.7-v7.3.23-linux64/lib-python/2.7/subprocess.py:409: in __init__
    errread, errwrite)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <subprocess.Popen object at 0x00000000150d0838>
args = ['/bin/sh', '-c', 'as --64 "/tmp/pytest/usession-main-3124/rx86_64/checkfile_MOVUPS_sx.s" -o "/tmp/pytest/usession-main-3124/rx86_64/checkfile_MOVUPS_sx.o"']
executable = '/bin/sh', preexec_fn = None, close_fds = True, cwd = None
env = None, universal_newlines = False, startupinfo = None, creationflags = 0
shell = True, to_close = set([18, 19]), p2cread = 17, p2cwrite = 18
c2pread = 19, c2pwrite = 20, errread = None, errwrite = 20

    def _execute_child(self, args, executable, preexec_fn, close_fds,
                       cwd, env, universal_newlines,
                       startupinfo, creationflags, shell, to_close,
                       p2cread, p2cwrite,
                       c2pread, c2pwrite,
                       errread, errwrite):
        """Execute program (POSIX version)"""
    
        if isinstance(args, types.StringTypes):
            args = [args]
        else:
            args = list(args)
    
        if shell:
            args = ["/bin/sh", "-c"] + args
            if executable:
                args[0] = executable
    
        if executable is None:
            executable = args[0]
    
        def _close_in_parent(fd):
            os.close(fd)
            to_close.remove(fd)
    
        # For transferring possible exec failure from child to parent
        # The first char specifies the exception type: 0 means
        # OSError, 1 means some other error.
        errpipe_read, errpipe_write = self.pipe_cloexec()
        try:
            try:
                with self._disabling_gc_lock:
                    gc_was_enabled = gc.isenabled()
                    # Disable gc to avoid bug where gc -> file_dealloc ->
                    # write to stderr -> hang.
                    # https://bugs.python.org/issue1336
                    gc.disable()
                try:
>                   self.pid = os.fork()
E                   OSError: [Errno 11] Resource temporarily unavailable

/opt/pypy2.7-v7.3.23-linux64/lib-python/2.7/subprocess.py:968: OSError
---------- Captured stdout call ----------
Testing MOVUPS with argmodes='sx'
builder: rpython-linux-x86-64 build #948+
test: jit/backend/x86/test/test_rx86_64_auto_encoding.py::TestRx86_64::()::test_all::[322]