Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* asm
@ 1999-01-06  5:30 Christoph Dworzak
  1999-01-06  6:32 ` asm Richard Henderson
  0 siblings, 1 reply; 2+ messages in thread
From: Christoph Dworzak @ 1999-01-06  5:30 UTC (permalink / raw)
  To: axp-list

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-01-06  6:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-01-06  5:30 asm Christoph Dworzak
1999-01-06  6:32 ` asm Richard Henderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox