Shifting signed ULP registers
Posted: Wed Dec 16, 2020 12:24 pm
by Aussiross
The ULP registers are stated to be 16 bit signed. Can anyone confirm whether the LSH instruction performs sign-extended or not?
Re: Shifting signed ULP registers
Posted: Wed Jan 20, 2021 6:39 pm
by Aussiross
Answer for other's benefit...
The ULP registers are all unsigned, and only immediate values are signed / sign extended.
Note the implication that JUMPR x,0,LT and JUMPR x,-1,GT are never taken.