[ARM,MVE] Fix valid immediate range for vsliq_n.
authorSimon Tatham <simon.tatham@arm.com>
Thu, 9 Jan 2020 10:49:41 +0000 (10:49 +0000)
committerSimon Tatham <simon.tatham@arm.com>
Thu, 9 Jan 2020 15:04:47 +0000 (15:04 +0000)
commitd857e114b5e04f5143485a5aea7ad9b283768692
tree2f332c8d574705cb51c98c04e795b1894139c303
parent667e1f71b83c48b635b13b64bbff28b95e68265c
[ARM,MVE] Fix valid immediate range for vsliq_n.

In common with most MVE immediate shift instructions, the left shift
takes an immediate in the range [0,n-1], while the right shift takes
one in the range [1,n]. I had absent-mindedly made them both the
latter.

While I'm here, I've added a set of regression tests checking both
ends of the immediate range for a representative sample of the
immediate shifts.
clang/include/clang/Basic/arm_mve.td
clang/test/Sema/arm-mve-immediates.c