[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_u8_indices_1.c
blobc9ad6634d7bfbd2d1291624a1974ee0e09e0ec30
1 /* { dg-do assemble } */
3 #include <arm_neon.h>
5 uint8_t
6 test_vgetq_lane_u8_before (uint8x16_t in)
8 /* { dg-error "lane -1 out of range 0 - 15" "" {target *-*-*} 0 } */
9 return vgetq_lane_u8 (in, -1);
12 uint8_t
13 test_vgetq_lane_u8_beyond (uint8x16_t in)
15 /* { dg-error "lane 16 out of range 0 - 15" "" {target *-*-*} 0 } */
16 return vgetq_lane_u8 (in, 16);