gcc/testsuite/gcc.target/aarch64/simd/vgetq_lane_u8_indices_1.c
raw| 1 | /* { dg-do assemble } */ |
| 2 | |
| 3 | #include <arm_neon.h> |
| 4 | |
| 5 | uint8_t |
| 6 | test_vgetq_lane_u8_before (uint8x16_t in) |
| 7 | { |
| 8 | /* { dg-error "lane -1 out of range 0 - 15" "" {target *-*-*} 0 } */ |
| 9 | return vgetq_lane_u8 (in, -1); |
| 10 | } |
| 11 | |
| 12 | uint8_t |
| 13 | test_vgetq_lane_u8_beyond (uint8x16_t in) |
| 14 | { |
| 15 | /* { dg-error "lane 16 out of range 0 - 15" "" {target *-*-*} 0 } */ |
| 16 | return vgetq_lane_u8 (in, 16); |
| 17 | } |