[AArch64]Remove be_checked_get_lane, check bounds with __builtin_aarch64_im_lane_boundsi.
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / simd / vget_lane_p16_indices_1.c
blobbcf25394519378afc30d85c2b26f3913ee8bef69
1 /* { dg-do assemble } */
3 #include <arm_neon.h>
5 poly16_t
6 test_vget_lane_p16_before (poly16x4_t in)
8 /* { dg-error "lane -1 out of range 0 - 3" "" {target *-*-*} 0 } */
9 return vget_lane_p16 (in, -1);
12 poly16_t
13 test_vget_lane_p16_beyond (poly16x4_t in)
15 /* { dg-error "lane 4 out of range 0 - 3" "" {target *-*-*} 0 } */
16 return vget_lane_p16 (in, 4);