Shifting signed ULP registers

Aussiross
Posts: 2
Joined: Wed Dec 16, 2020 12:15 pm

Shifting signed ULP registers

Postby Aussiross » Wed Dec 16, 2020 12:24 pm

The ULP registers are stated to be 16 bit signed. Can anyone confirm whether the LSH instruction performs sign-extended or not?

Aussiross
Posts: 2
Joined: Wed Dec 16, 2020 12:15 pm

Re: Shifting signed ULP registers

Postby Aussiross » Wed Jan 20, 2021 6:39 pm

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.

Who is online

Users browsing this forum: Google [Bot] and 82 guests