Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: axp@amazing.ch (Christoph Dworzak)
To: axp-list@redhat.com
Subject: asm
Date: Wed, 06 Jan 1999 05:30:00 GMT	[thread overview]
Message-ID: <2786b60e.u10t12e.e8910-axp@amazing.ch> (raw)

Hi

I have still some troubles to understand how the alpha-cpu
issues instructions.

Maybe some kind soul could help me with this example?

/*   M[0] = 0xaaaaaaaaaaaaaaaa; M[1] = 0xcccccccccccccccc; M[2] = 0xf0f0f0f0f0f0f0f0; */
/*   M[3] = 0xff00ff00ff00ff00; M[4] = 0xffff0000ffff0000; M[5] = 0xffffffff00000000; */

	lda $0,-1
	zap $0,0x0f,$6
	zap $0,0x33,$5
	zap $0,0x55,$4
	srl $4,4,$3
	stq $6,552($30)
	xor $4,$3,$3
	stq $5,544($30)
	srl $3,2,$2
	stq $4,536($30)
	xor $3,$2,$2
	stq $3,528($30)
	srl $2,1,$1
	stq $2,520($30)
	xor $2,$1,$1
	stq $1,512($30)

How many cycles would this take (on a 21164) and which instruction
do get paired together?

How would you optimize it?

Bye
 dworz


             reply	other threads:[~1999-01-06  4:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-01-06  5:30 Christoph Dworzak [this message]
1999-01-06  6:32 ` asm Richard Henderson
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