From: davidm@cs.arizona.edu (David Mosberger-Tang)
Subject: 21164 scheduling question
Date: 1995/04/03 [thread overview]
Message-ID: <DAVIDM.95Apr2205230@piston.cs.arizona.edu> (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
next reply other threads:[~1995-04-03 4:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-04-03 4:00 David Mosberger-Tang [this message]
1995-04-07 4:00 ` 21164 scheduling question David Anderson
1995-04-07 4:00 ` David Mosberger-Tang
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