Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* 21164 scheduling question
@ 1995-04-03  4:00 David Mosberger-Tang
  1995-04-07  4:00 ` David Anderson
  0 siblings, 1 reply; 3+ messages in thread
From: David Mosberger-Tang @ 1995-04-03  4:00 UTC (permalink / raw)


In section "Coding Guidelines" of chapter "Scheduling and Issuing
Rules for the Alpha 21164" of the 21164 manual, there is an example of
code that executes faster if a NOP is introduced (this chapter is
available as a postscript file on gatekeeper.dec.com but I forgot the
exact name of the file).  The example is:

---
Code example showing bad ordering	Code example showing good ordering

(1) [a]	LDL	R2,0(R1)		(1) [e]	LDL	R2,0(R1)
(3) [b] ADDL	R2,R3,R4		(1) [f] NOP
(4) [c] ADDL	R2,R5,R6		(3) [g] ADDL	R2,R3,R4
(5) [d] ADDL	R4,R8,R9		(3) [h] ADDL	R2,R5,R6
					(4) [i] ADDL	R4,R8,R9

  NOTES: The instruction examples are assumed to begin on an INT16 alignment.
	 (n) = Expected execute cycles
---

What I don't understand is why [d] issues only in cycle 5 (instead of
4).  According to the "Instruction Latencies" table, ADDL has a
latency of 1, so the result of [b] should be available in cycle 4.  Is
there another reason for the split-issue of instructions [c] and [d]?

BTW: Is the full 21164 hw ref manual available anywhere?  A
postscript file would be preferable, but hardcopy is OK, too.

	--david
--
David Mosberger-Tang; Dept. of CS; The University of Arizona; Tucson, AZ 85721
davidm@cs.arizona.edu; http://www.cs.arizona.edu/xkernel/www/people/davidm.html



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

* Re: 21164 scheduling question
  1995-04-07  4:00 ` David Anderson
@ 1995-04-07  4:00   ` David Mosberger-Tang
  0 siblings, 0 replies; 3+ messages in thread
From: David Mosberger-Tang @ 1995-04-07  4:00 UTC (permalink / raw)


In article <3m29g1$cjo@fujitsui.fujitsu.com> David Anderson <dave.anderson@fmi.fujitsu.com> writes:

  David> Could it be that the 21164 does not bypass it's results
  David> between functional units?

No, according to the manual, the 21164 can bypass results to anything
except the integer multiplier (at least some bypasses are missing
there).  I haven't heard anything else, so I tend to believe the
answer posted by hobbs@steven.enet.dec.com.  He pointed out that the
example in the manual is probably wrong.

	--david
--
David Mosberger-Tang; Dept. of CS; The University of Arizona; Tucson, AZ 85721
davidm@cs.arizona.edu; http://www.cs.arizona.edu/xkernel/www/people/davidm.html



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

* Re: 21164 scheduling question
  1995-04-03  4:00 21164 scheduling question David Mosberger-Tang
@ 1995-04-07  4:00 ` David Anderson
  1995-04-07  4:00   ` David Mosberger-Tang
  0 siblings, 1 reply; 3+ messages in thread
From: David Anderson @ 1995-04-07  4:00 UTC (permalink / raw)


davidm@cs.arizona.edu (David Mosberger-Tang) wrote:
>
> (1) [a] LDL	R2,0(R1)		(1) [e]	LDL	R2,0(R1)
> (3) [b] ADDL	R2,R3,R4		(1) [f] NOP
> (4) [c] ADDL	R2,R5,R6		(3) [g] ADDL	R2,R3,R4
> (5) [d] ADDL	R4,R8,R9		(3) [h] ADDL	R2,R5,R6
> 
> What I don't understand is why [d] issues only in cycle 5 (instead of
> 4). 
> davidm@cs.arizona.edu; http://www.cs.arizona.edu/xkernel/www/people/davidm.html

Could it be that the 21164 does not bypass it's results between 
functional units?  In this case [b] would have been dispatched to
the same funtional unit as [c] and therfore [d] would not be able
to execute until [b] writes it's results.  Of cource if the logic
was smart enough it could displatch [d] to the same ALU
as [b] and put [c] in the other ALU.  

Does the P6 bypass between it's ALUs?

-dave
David Anderson; Fujitsu Microelectronics.



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

end of thread, other threads:[~1995-04-07  4:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-04-03  4:00 21164 scheduling question David Mosberger-Tang
1995-04-07  4:00 ` David Anderson
1995-04-07  4:00   ` David Mosberger-Tang

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