[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_s64_indices_1.c
blobe449797fe54c56e32d80b78783adbbf66713388b
1 /* { dg-do assemble } */
3 #include <arm_neon.h>
5 int64_t
6 test_vget_lane_s64_before (int64x1_t in)
8 /* { dg-error "lane -1 out of range 0 - 0" "" {target *-*-*} 0 } */
9 return vget_lane_s64 (in, -1);
12 int64_t
13 test_vget_lane_s64_beyond (int64x1_t in)
15 /* { dg-error "lane 1 out of range 0 - 0" "" {target *-*-*} 0 } */
16 return vget_lane_s64 (in, 1);