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

Vector shift with Neon error

Note: This was originally posted on 28th March 2013 at http://forums.arm.com

Hi Everyone,

I am trying to shift elements in the vectors with a constant int variable,
but i get an error during compile time saying : arm_neon.h:3850  error: argument must be a constant.
whenever i replace the constant int variable with a constant value , the compiler works just fine.
I have tried to search for solutions online but i am not getting anywhere.

I am using a 2009q arm tool chain and I also tried the using the Dstream tool chain but it is not working for arm cortex A8.
if anyone heres my cry for help and has a solution please reach out and help urgently..
Parents
  • Note: This was originally posted on 28th March 2013 at http://forums.arm.com

    Can you please give a code sample - it's hard to work out exactly what you have done without seeing the code.
    I suspect you are trying to give it a "const int", which is not a compile time constant and therefore invalid. The shift amount is not passed in a register, it is part of the instruction encoding.

    HTH,
    Iso
Reply
  • Note: This was originally posted on 28th March 2013 at http://forums.arm.com

    Can you please give a code sample - it's hard to work out exactly what you have done without seeing the code.
    I suspect you are trying to give it a "const int", which is not a compile time constant and therefore invalid. The shift amount is not passed in a register, it is part of the instruction encoding.

    HTH,
    Iso
Children
No data