Please note: We are aware of an issue affecting replies on the Arm Community forums, which may not be loading as expected.

We apologize for any inconvenience and appreciate your patience while we investigate and work to resolve the issue.

Thank you for your understanding.


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

shifting and saturating two 16 bit words packed in one register

Note: This was originally posted on 7th November 2010 at http://forums.arm.com

hi all. im using ARM1176JZF-S.  im having two 16 bit words packed in one 32 bit register. i need to shift the two words left by 2 and saturate it.
for example:  #0x7000A000 should become : #0x7FFF8000
i know i can use the ssat16 instruction , but it doesnt help me after the shifting.
does anyone have an idea?
thanks all