RISC-V: Work around bare apostrophe in error string.
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / advsimd-intrinsics / vcopy_laneq_bf16_indices_2.c
blob036690b0be662a7bb642167d268217604de6f1ca
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 bfloat16x4_t
9 test_vcopy_laneq_bf16 (bfloat16x4_t a, bfloat16x8_t b)
11 bfloat16x4_t res;
12 /* { dg-error "lane -1 out of range 0 - 7" "" { target *-*-* } 0 } */
13 res = vcopy_laneq_bf16 (a, 1, b, -1);
14 /* { dg-error "lane 8 out of range 0 - 7" "" { target *-*-* } 0 } */
15 res = vcopy_laneq_bf16 (a, 1, b, 8);
16 return res;