PR116019: Improve tail call error message
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / advsimd-intrinsics / vcopyq_lane_bf16_indices_2.c
blob6e8004a128722f1b0e6fc292292afbdd8a727533
1 /* { dg-do compile { target { aarch64*-*-* } } } */
2 /* { dg-skip-if "" { *-*-* } { "-fno-fat-lto-objects" } } */
3 /* { dg-require-effective-target arm_v8_2a_bf16_neon_ok } */
4 /* { dg-add-options arm_v8_2a_bf16_neon } */
6 #include <arm_neon.h>
8 bfloat16x8_t
9 test_vcopyq_lane_bf16 (bfloat16x8_t a, bfloat16x4_t b)
11 bfloat16x8_t res;
12 /* { dg-error "lane -1 out of range 0 - 3" "" { target *-*-* } 0 } */
13 res = vcopyq_lane_bf16 (a, 2, b, -1);
14 /* { dg-error "lane 4 out of range 0 - 3" "" { target *-*-* } 0 } */
15 res = vcopyq_lane_bf16 (a, 2, b, 4);
16 return res;