I forgot to add that these instruction never actually get executed, no exclusive-OR or subtraction is done. Instead the instruction decoder recognizes these cases and during register renaming which is part of out-of-order execution, they map the target register to one that has a constant value of 0 in it. It doesn't even take up an execution slot in the pipeline. Any subsequent instructions that depend on the 0 value will be able to execute without having to wait for the computation to be done.
- Re: Clearing a register Dan Greiner
- Re: Clearing a register Steve Smith
- Re: Clearing a register Robin Vowels
- Re: Clearing a register Robin Vowels
- Re: Clearing a register Robert Netzlof
- Re: Clearing a register Robin Vowels
- Re: Clearing a register Rob van der Heij
- Re: Clearing a register Peter Relson
- Re: Clearing a register Ray Mansell
- Re: Clearing a register Jonathan Bradbury
- Re: Clearing a register Jonathan Bradbury
- Re: Clearing a register Paul Gilmartin
- Re: Clearing a register Charles Mills
- Re: Clearing a register Jim Mulder
- Re: Clearing a register Charles Mills
- Re: Clearing a register Binyamin Dissen
