aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/aarch64/simd/vld2q_lane_u16_indices_1.c
blob: cf5ff434918b295ab4bb3fbf76edb73d7cb00a6b (plain)
1
2
3
4
5
6
7
8
9
10
#include <arm_neon.h>

uint16x8x2_t
f_vld2q_lane_u16 (uint16_t * p, uint16x8x2_t v)
{
  uint16x8x2_t res;
  res = vld2q_lane_u16 (p, v, 8); /* { dg-error "lane 8 out of range 0 - 7" "" { target *-*-* } 0 } */
  res = vld2q_lane_u16 (p, v, -1); /* { dg-error "lane -1 out of range 0 - 7" "" { target *-*-* } 0 } */
  return res;
}