This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Advantage of Zero register over the cost of implementing it ?

Hi,

I've heard that the cost of implementing a register is more.

In ARMv8 there is a Zero register XZR/WZR, so what is the benefit of implementing such a register over the cost of implementing it?

Parents
  • If you check out the AArch64 ISA you see the advantage: You can reduce the number of real opcodes if you have a dedicated register which returns 0 or discards the data written. I suspect the implementation is rather simple.

Reply
  • If you check out the AArch64 ISA you see the advantage: You can reduce the number of real opcodes if you have a dedicated register which returns 0 or discards the data written. I suspect the implementation is rather simple.

Children
No data