Arm Community
Site
Search
User
Site
Search
User
Support forums
Arm Development Studio forum
NEON-How to shift the whole D or Q to left or right?
Jump...
Cancel
Locked
Locked
Replies
3 replies
Subscribers
119 subscribers
Views
4274 views
Users
0 members are here
Options
Share
More actions
Cancel
Related
How was your experience today?
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
NEON-How to shift the whole D or Q to left or right?
Alan Chen
over 12 years ago
Note: This was originally posted on 12th July 2012 at
http://forums.arm.com
Hello
Base on NEON instuction set, I can find the VSHL or VSHR to perform shift operation. But it is just for every element.
How can I shift the whole D or Q register to left or right?
For instance, if D = 0x0001020304050607, when it shift right 8 bit, it should become D=0x0000010203040506.
Best Regards,
Alan Chen
Parents
Peter Harris
over 12 years ago
Note: This was originally posted on 16th July 2012 at
http://forums.arm.com
Use the same principle as a rotate (shown in the manual), but feed in a register of zeros for one or other of the registers, depending which way you are shifting.
http://infocenter.ar...h/CIHGAEFI.html
HTH,
Iso
Cancel
Vote up
0
Vote down
Cancel
Reply
Peter Harris
over 12 years ago
Note: This was originally posted on 16th July 2012 at
http://forums.arm.com
Use the same principle as a rotate (shown in the manual), but feed in a register of zeros for one or other of the registers, depending which way you are shifting.
http://infocenter.ar...h/CIHGAEFI.html
HTH,
Iso
Cancel
Vote up
0
Vote down
Cancel
Children
No data