gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vld4q_lane_s8_indices_1.c
raw| 1 | #include <arm_neon.h> |
| 2 | |
| 3 | /* { dg-do compile } */ |
| 4 | /* { dg-skip-if "" { *-*-* } { "-fno-fat-lto-objects" } } */ |
| 5 | /* { dg-skip-if "" { arm*-*-* } } */ |
| 6 | |
| 7 | int8x16x4_t |
| 8 | f_vld4q_lane_s8 (int8_t * p, int8x16x4_t v) |
| 9 | { |
| 10 | int8x16x4_t res; |
| 11 | /* { dg-error "lane 16 out of range 0 - 15" "" { target *-*-* } 0 } */ |
| 12 | res = vld4q_lane_s8 (p, v, 16); |
| 13 | /* { dg-error "lane -1 out of range 0 - 15" "" { target *-*-* } 0 } */ |
| 14 | res = vld4q_lane_s8 (p, v, -1); |
| 15 | return res; |
| 16 | } |