[PATCH 2/2] powerpc: Fix operand prefixes

Steven Munroe munroesj@linux.vnet.ibm.com
Wed Apr 20 22:11:00 GMT 2016


On Wed, 2016-04-20 at 17:55 -0300, Gabriel F. T. Gomes wrote:
> The file sysdeps/powerpc/sysdeps.h defines aliases for control register
> operands.  E.g.: 'cr7' means control register 7.  On the one hand, this
> increases readability, as it makes it easier for readers to know whether the
> operand is a control register, a general purpose register or an immediate.  On
> the other hand, this permits that control register be written as if they were
> general purpose, and vice-versa, thus reducing the readability of the code.
> 

I think you mean condition registers, and there are instructions that
will correctly update a specific cr# (cmpdi for example). 

But li and ld are not examples of instructions that do that. 



More information about the Libc-alpha mailing list