Can someone explain when it's beneficial to use the parallel add/subtract ARM instructions ASX
and/or SAX
? In what situation/algorithm would one need to exhange the halfwords, then add AND subtract the upper/lower halfwords? Below is the explanation of each:
ASX
- Exchange halfwords of
Rm
, then Add top halfwords and Subtract bottom halfwords.SAX
- Exchange halfwords of
Rm
, then Subtract top halfwords and Add bottom halfwords.