[AArch64]Remove be_checked_get_lane, check bounds with __builtin_aarch64_im_lane_boundsi.
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / simd / vgetq_lane_u16_indices_1.c
blob5ccea06f9ee7b4b7d0783ee0bd3b9695c57169f5
1 /* { dg-do assemble } */
3 #include <arm_neon.h>
5 uint16_t
6 test_vgetq_lane_u16_before (uint16x8_t in)
8 /* { dg-error "lane -1 out of range 0 - 7" "" {target *-*-*} 0 } */
9 return vgetq_lane_u16 (in, -1);
12 uint16_t
13 test_vgetq_lane_u16_beyond (uint16x8_t in)
15 /* { dg-error "lane 8 out of range 0 - 7" "" {target *-*-*} 0 } */
16 return vgetq_lane_u16 (in, 8);