On 08/23/2010 11:05 AM, Mohamed Shafi wrote:
> sub.s32 srcdstGP, #imm16 // signed 16-bit register to immediate subtract
> sub.u32 srcdstGP, #imm16 // unsigned 16-bit register to immediate subtract

Having both of these is probably not useful.  Bernd pointed
out that a 17-bit constant would be more useful.  I'll point
out that if you have a signed constant then SUB and ADD tend
to be essentially identical as well.

Consider implementing "reverse subtract"

        RSUB reg, #imm
as
        reg = imm - reg

instead.


r~

Reply via email to