ARM/AArch64 Testsuite] Add float16 lane_f16_indices tests
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / advsimd-intrinsics / vld4_lane_f16_indices_1.c
blobbd7ecf06690e330ad4fce6c5c4534ab7302e6953
1 #include <arm_neon.h>
3 /* { dg-do compile } */
4 /* { dg-skip-if "" { *-*-* } { "-fno-fat-lto-objects" } } */
5 /* { dg-excess-errors "" { xfail arm*-*-* } } */
7 float16x4x4_t
8 f_vld4_lane_f16 (float16_t * p, float16x4x4_t v)
10 float16x4x4_t res;
11 /* { dg-error "lane 4 out of range 0 - 3" "" { xfail arm*-*-* } 0 } */
12 res = vld4_lane_f16 (p, v, 4);
13 /* { dg-error "lane -1 out of range 0 - 3" "" { xfail arm*-*-* } 0 } */
14 res = vld4_lane_f16 (p, v, -1);
15 return res;