From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 19665 invoked from network); 18 Oct 1999 13:05:24 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 18 Oct 1999 13:05:24 -0000 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id JAA21937 for ; Mon, 18 Oct 1999 09:05:23 -0400 Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.8.7/8.8.7) with ESMTP id PAA01570 for ; Mon, 18 Oct 1999 15:05:17 +0200 (MET DST) Received: (from harley@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id PAA14435 for axp-list@redhat.com; Mon, 18 Oct 1999 15:05:17 +0200 (MET DST) Date: Mon, 18 Oct 1999 15:05:17 +0200 (MET DST) From: Robert Harley Message-Id: <199910181305.PAA14435@pauillac.inria.fr> To: axp-list@redhat.com Subject: Re: patch_v2: (on Alpha) emulating missing instructions Luke Deller wrote: >+ extwl $3,0x6,$4 /* get word 3 of ra (most significant) -> $4 */ >+ extwl $2,0x6,$1 /* get word 3 of rb -> $2 */ >+ cmple $2,$3,$6 >+ cmovne $6,$1,$4 Surely you should compare registers 1 and 4, rather than 2 and 3. >+ extwl $3,0x4,$5 /* get word 2 of ra -> $5 */ >+ extwl $2,0x4,$1 /* get word 2 of rb -> $1 */ >+ cmple $2,$3,$6 >+ sll $4,16,$4 >+ cmovne $6,$1,$5 >+ or $4,$5,$4 Likewise with 1 and 5. Same elsewhere. >+.globl emul_maxub_8 >+.ent emul_maxub_8 >+emul_maxsb_8: ub or sb? >+ lda $1,0x7f7f($31) >+ ldah $1,0x7f7f($1) >+ sll $1,32,$5 >+ or $1,$5,$1 >+ not $1,$1 I think you could get the 0x8080808080808080 pattern shorter by something like: not $31, $1 zap $1, 0x55, $1 srl $1, 1, $5 xor $1, $5, $1 Bye, Rob.