From: Robert Harley <Robert.Harley@inria.fr>
To: axp-list@redhat.com
Subject: Re: patch_v2: (on Alpha) emulating missing instructions
Date: Mon, 18 Oct 1999 15:05:17 +0200 (MET DST) [thread overview]
Message-ID: <199910181305.PAA14435@pauillac.inria.fr> (raw)
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.
next reply other threads:[~1999-10-18 13:05 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-10-18 13:05 Robert Harley [this message]
-- strict thread matches above, loose matches on Subject: below --
1999-10-18 14:46 patch_v2: (on Alpha) emulating missing instructions Robert Harley
1999-10-18 15:31 ` Phil Carmody
1999-10-23 20:39 ` Richard Henderson
[not found] ` <rth@twiddle.net>
1999-10-24 15:04 ` Christoph Dworzak
1999-10-25 9:47 ` Phil Carmody
1999-10-15 9:30 PATCH: " Luke Deller
1999-10-16 9:13 ` patch_v2: " Luke Deller
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox