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

int32x2x4_t
f_vld4_lane_s32 (int32_t * p, int32x2x4_t v)
{
  int32x2x4_t res;
  res = vld4_lane_s32 (p, v, 2); /* { dg-error "lane 2 out of range 0 - 1" "" { target *-*-* } 0 } */
  res = vld4_lane_s32 (p, v, -1); /* { dg-error "lane -1 out of range 0 - 1" "" { target *-*-* } 0 } */
  return res;
}