[From nobody Tue Aug 16 11:31:09 2011
Return-Path: pypy-dev-bounces+dmalcolm=redhat.com@python.org
Received: from zmta03.collab.prod.int.phx2.redhat.com (LHLO
	zmta03.collab.prod.int.phx2.redhat.com) (10.5.5.33) by
	mail02.corp.redhat.com with LMTP; Tue, 16 Aug 2011 07:58:17 -0400 (EDT)
Received: from localhost (localhost.localdomain [127.0.0.1]) by
	zmta03.collab.prod.int.phx2.redhat.com (Postfix) with ESMTP id
	6EE95F1421
	for &lt;dmalcolm@redhat.com&gt;; Tue, 16 Aug 2011 07:58:17 -0400 (EDT)
Authentication-Results: zmta03.collab.prod.int.phx2.redhat.com
	(amavisd-new); dkim=pass header.i=@python.org
Received: from zmta03.collab.prod.int.phx2.redhat.com ([127.0.0.1]) by
	localhost (zmta03.collab.prod.int.phx2.redhat.com [127.0.0.1])
	(amavisd-new, port 10024) with ESMTP id t4AImA6YGG88 for
	&lt;dmalcolm@redhat.com&gt;; Tue, 16 Aug 2011 07:58:17 -0400 (EDT)
Received: from int-mx10.intmail.prod.int.phx2.redhat.com
	(int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by
	zmta03.collab.prod.int.phx2.redhat.com (Postfix) with ESMTP id
	57A26F1408 for &lt;dmalcolm@mail.corp.redhat.com&gt;;
	Tue, 16 Aug 2011 07:58:17 -0400 (EDT)
Received: from mx1.redhat.com (ext-mx12.extmail.prod.ext.phx2.redhat.com
	[10.5.110.17]) by int-mx10.intmail.prod.int.phx2.redhat.com
	(8.14.4/8.14.4)
	with ESMTP id p7GBwH6n015333 for &lt;dmalcolm@redhat.com&gt;; Tue, 16 Aug 2011
	07:58:17 -0400
Received: from mail.python.org (mail.python.org [82.94.164.166]) by
	mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p7GBwF4m030123 for
	&lt;dmalcolm@redhat.com&gt;; Tue, 16 Aug 2011 07:58:15 -0400
Received: from albatross.python.org (localhost [127.0.0.1]) by
	mail.python.org (Postfix) with ESMTP id 3RdXJR0qVJzN6M for
	&lt;dmalcolm@redhat.com&gt;; Tue, 16 Aug 2011 13:58:15 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=python.org;
	s=200901; t=1313495895; bh=e1po3E3f0R8m16ofSYzr6lYYMM1WlG4vwVj5qCzhtcU=;
	h=MIME-version:Message-id:Date:From:To:References:In-reply-to:Cc:
	Subject:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:
	List-Subscribe:Content-Transfer-Encoding:Content-Type:Sender;
	b=yXz/5Z8I3pKXHpb6bYRVSWj5f1XkuLjlt3dCkZOv9D2mjyf0fxN/xS2gk1mClXnlg
	7C27KGqee+Rls/c8RR4i+NJ4U5oxmgzjtXu1FjlyhgHRBLQOprC1ck9Vc4bTNzjgqA
	EFv61ndB+5xl5uX6lUSDyXUV3ExJgsCducdx4Xvg=
X-Original-To: pypy-dev@python.org
Delivered-To: pypy-dev@mail.python.org
Received: from albatross.python.org (localhost [127.0.0.1]) by
	mail.python.org (Postfix) with ESMTP id 3RdXHt4FdjzN4S for
	&lt;pypy-dev@python.org&gt;; Tue, 16 Aug 2011 13:57:46 +0200 (CEST)
X-Spam-Status: OK 0.001
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'pointer': 0.05; 'received:134':
	0.05; 'tests,': 0.07; 'descriptor': 0.09; 'header :In-reply-to:1': 0.09;
	'libffi': 0.09; 'pointer.': 0.09; 'def': 0.15; 'heavily': 0.15;
	'static':
	0.15; '[])': 0.16; 'armin': 0.16; 'backend.': 0.16; 'coerced': 0.16;
	'descriptors,': 0.16; 'failing': 0.16; 'pointers.': 0.16;
	'should.': 0.16; 
	'simplified': 0.16; 'testcase': 0.16; 'wrote:': 0.16; 'linux': 0.17;
	'thanks,': 0.18; 'cc:no real name:2**0': 0.20; 'linux,': 0.21; 'stuff':
	0.22; 'cc:2**0': 0.22; 'incorrect': 0.23; 'talked': 0.23; 'pm,': 0.24; 
	'code': 0.25; 'tests': 0.25; 'load': 0.26; 'function': 0.27; 'bit': 0.28;
	'problem': 0.28; 'cc:addr:python.org': 0.30; 'addresses.': 0.31; 'adds':
	0.32; 'does': 0.32; 'it.': 0.33; &quot;can't&quot;: 0.33; 'there': 0.33;
	'header:User-Agent:1': 0.34; 'test': 0.34; 'backend': 0.34;
	'david': 0.35; 
	'uses': 0.35; 'object': 0.35; 'another': 0.37; 'machine': 0.37; 'patch':
	0.38; 'some': 0.38; 'subject:: ': 0.39; 'received:192': 0.39;
	'data': 0.39; 
	'agreed': 0.40; &quot;it's&quot;: 0.40; 'your': 0.61; 'address': 0.61; 'ppc': 0.67;
	'discovered': 0.68; 'address,': 0.72; 'typos': 0.84
Received: from localhost (HELO mail.python.org) (127.0.0.1) by
	albatross.python.org with SMTP; 16 Aug 2011 13:57:46 +0200
Received: from mail.rz.uni-duesseldorf.de
	(mailout-apollo.uni-duesseldorf.de [134.99.128.36]) by mail.python.org
	(Postfix) with ESMTP for &lt;pypy-dev@python.org&gt;;
	Tue, 16 Aug 2011 13:57:46 +0200 (CEST)
MIME-version: 1.0
Received: from [192.168.4.252] (fwstups.cs.uni-duesseldorf.de
	[134.99.112.66]) by mail.rz.uni-duesseldorf.de (Sun Java(tm) System
	Messaging Server 6.3-11.01 (built Feb 12 2010; 32bit)) with ESMTPA id
	&lt;0LQ0002FRRW4EJ50@mail.rz.uni-duesseldorf.de&gt; for pypy-dev@python.org;
	Tue, 16 Aug 2011 13:57:40 +0200 (MEST)
Message-id: &lt;4E4A5B34.9010607@uni-duesseldorf.de&gt;
Date: Tue, 16 Aug 2011 13:57:40 +0200
From: Sven Hager &lt;Sven.Hager@uni-duesseldorf.de&gt;
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18)
	Gecko/20110617 Thunderbird/3.1.11
To: David Edelsohn &lt;dje.gcc@gmail.com&gt;
References: &lt;CAGWvnykpGnB8n6WyudteXussnafTGpPwQhOEGytMUg_aNJBh9Q@mail.gmail.com&gt;
In-reply-to: &lt;CAGWvnykpGnB8n6WyudteXussnafTGpPwQhOEGytMUg_aNJBh9Q@mail.gmail.com&gt;
Cc: pypy-dev@python.org
Subject: Re: [pypy-dev] PPC64 JIT progress
X-BeenThere: pypy-dev@python.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: development of the PyPy Python implementation &lt;pypy-dev.python.org&gt;
List-Unsubscribe: &lt;http://mail.python.org/mailman/options/pypy-dev&gt;,
	&lt;mailto:pypy-dev-request@python.org?subject=unsubscribe&gt;
List-Archive: &lt;http://mail.python.org/pipermail/pypy-dev&gt;
List-Post: &lt;mailto:pypy-dev@python.org&gt;
List-Help: &lt;mailto:pypy-dev-request@python.org?subject=help&gt;
List-Subscribe: &lt;http://mail.python.org/mailman/listinfo/pypy-dev&gt;,
	&lt;mailto:pypy-dev-request@python.org?subject=subscribe&gt;
Content-Type: text/plain; charset=&quot;us-ascii&quot;; Format=&quot;flowed&quot;
Sender: pypy-dev-bounces+dmalcolm=redhat.com@python.org
Errors-To: pypy-dev-bounces+dmalcolm=redhat.com@python.org
X-RedHat-Spam-Score: -1.773 
	(DKIM_SIGNED,DKIM_VALID,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD)
X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23
X-Scanned-By: MIMEDefang 2.68 on 10.5.110.17
Content-Transfer-Encoding: 7bit

On 08/15/2011 07:12 PM, David Edelsohn wrote:
&gt; Attached is the next patch for the PPC JIT backend.
&gt;
&gt; The patch adds shift-left simplified mnemonic (sldi) and a load
&gt; doubleword (load_dword) function that uses it.
&gt;
&gt; I also discovered some typos in my previous patch to ppc_field.py.
&gt;
&gt; Currently every PPC JIT testcase fails on PPC64 Linux because the PPC
&gt; backend makes an incorrect assumption about function pointers.  PPC64
&gt; Linux function pointer point to function descriptors, not code
&gt; addresses.  PPC64 Linux libffi knows this, which makes
&gt;
&gt;      def get_function(self):
&gt;          i = self.code.materialize(AsmMemoryManager(), [])
&gt;          t = lltype.FuncType([], lltype.Signed)
&gt;          return rffi.cast(lltype.Ptr(t), i)
&gt;
&gt; wrong for PPC64.
&gt;
&gt; A function descriptor is a three-word data vector containing the
&gt; function address, data addressibility pointer and static chain.  For
&gt; some of the tests to start working on PPC64 Linux, the backend needs
&gt; to create another data object that contains the function address and
&gt; that pointer is coerced into a function pointer.
&gt;
&gt; Thanks, David
Hello David,

I added your latest patch to the codebase.

I talked with Armin about the problem with the failing tests, and we
agreed that for now it's the best approach to implemented stuff for
a 32 bit machine until there is a possibility to test on a 64 bit machine.

The problem is that until I can't test the implemented 64 bit 
functionality I heavily doubt
that I am able to write code that does what it should. ;)

Best regards,
Sven
_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
http://mail.python.org/mailman/listinfo/pypy-dev
]