Re: Question on Processor pipeline description in GCC online doc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jan 29, 2013 at 7:47 AM, Terry Guo <flameroc@xxxxxxxxx> wrote:
>
> I am trying to under GCC pipeline description by reading its online
> doc at http://gcc.gnu.org/onlinedocs/gccint/Processor-pipeline-description.html#Processor-pipeline-description.
> The following example in the online doc confused me:
>
>     (define_insn_reservation "div" 8 (eq_attr "type" "div")
>                               "i1_pipeline, div*7, div + (port0 | port1)")
>
> My understanding is that the first cycle will use i1_pipeline unit and
> the next 7 cycles will use div unit, the 9th cycles will use either
> "div + port0" or "div + port1" unit. So in sum, this div instruction
> is going to need 9 cycles, not the 8. Or the "div*7" would be "div*6"?
> Could some one please help to clarify? Thanks in advance.

Presumably there is a register bypass in the last cycle, so that the
next instruction can use the result directly without waiting for the
write back to the register file.

Ian


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux