ObjASM 4.06 and range of shift vshrn.u16
André Timmermans (100) 655 posts |
When trying to use “vshrn.u16 q5, q1, #9” the compiler complains about the shift. From what I understand from the ARM doc the shift range whould be [0-15] like for a shift without narrowing. Can someone with NEON experience confirm this? |
Jeffrey Lee (213) 6048 posts |
For VSHRN.U16 the allowed shift range is [1-8]. I.e. the max shift is half the size of the input element. (In the ARM ARM, this information is hidden as a note in the assembler syntax section of the instruction description) |
André Timmermans (100) 655 posts |
Indeed, seems like the old NEON programmers guide got it wrong. |