From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 102b75,bc0f4f46ec801870,start X-Google-Attributes: gid102b75,public X-Google-Thread: 1164f8,bc0f4f46ec801870,start X-Google-Attributes: gid1164f8,public From: davidm@cs.arizona.edu (David Mosberger-Tang) Subject: 21164 scheduling question Date: 1995/04/03 Message-ID: #1/1 X-Deja-AN: 100717476 organization: The University of Arizona, Tucson, AZ newsgroups: comp.sys.dec,comp.arch 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