/* { dg-do compile { target { aarch64*-*-* } } } */ /* { dg-skip-if "" { *-*-* } { "-fno-fat-lto-objects" } } */ /* { dg-require-effective-target arm_v8_2a_bf16_neon_ok } */ /* { dg-add-options arm_v8_2a_bf16_neon } */ #include bfloat16x8_t test_vcopyq_lane_bf16 (bfloat16x8_t a, bfloat16x4_t b) { bfloat16x8_t res; /* { dg-error "lane -1 out of range 0 - 3" "" { target *-*-* } 0 } */ res = vcopyq_lane_bf16 (a, 2, b, -1); /* { dg-error "lane 4 out of range 0 - 3" "" { target *-*-* } 0 } */ res = vcopyq_lane_bf16 (a, 2, b, 4); return res; }