[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_u64_indices_1.c
bloba0d426e84adbea82d30a40ab348e7efba873b109
1 /* { dg-do assemble } */
3 #include <arm_neon.h>
5 uint64_t
6 test_vgetq_lane_u64_before (uint64x2_t in)
8 /* { dg-error "lane -1 out of range 0 - 1" "" {target *-*-*} 0 } */
9 return vgetq_lane_u64 (in, -1);
12 uint64_t
13 test_vgetq_lane_u64_beyond (uint64x2_t in)
15 /* { dg-error "lane 2 out of range 0 - 1" "" {target *-*-*} 0 } */
16 return vgetq_lane_u64 (in, 2);