diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/aarch64/simd/vld4_lane_s32_indices_1.c')
-rw-r--r-- | gcc/testsuite/gcc.target/aarch64/simd/vld4_lane_s32_indices_1.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/aarch64/simd/vld4_lane_s32_indices_1.c b/gcc/testsuite/gcc.target/aarch64/simd/vld4_lane_s32_indices_1.c new file mode 100644 index 00000000000..60d8a623414 --- /dev/null +++ b/gcc/testsuite/gcc.target/aarch64/simd/vld4_lane_s32_indices_1.c @@ -0,0 +1,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; +} |