99 lines · c
1// RUN: %clang_cc1 -triple aarch64-linux-gnu -target-feature +neon -ffreestanding -fsyntax-only -verify %s2 3#include <arm_neon.h>4// REQUIRES: aarch64-registered-target5 6 7void test_vector_multiply_by_scalar_and_widen_s16(int16x4_t arg_i16x4, int16x8_t arg_i16x8) {8 vmull_lane_s16(arg_i16x4, arg_i16x4, 0);9 vmull_lane_s16(arg_i16x4, arg_i16x4, 3);10 vmull_lane_s16(arg_i16x4, arg_i16x4, -1); // expected-error-re {{argument value {{.*}} is outside the valid range}}11 vmull_lane_s16(arg_i16x4, arg_i16x4, 4); // expected-error-re {{argument value {{.*}} is outside the valid range}}12 13 vmull_high_lane_s16(arg_i16x8, arg_i16x4, 0);14 vmull_high_lane_s16(arg_i16x8, arg_i16x4, 3);15 vmull_high_lane_s16(arg_i16x8, arg_i16x4, -1); // expected-error-re {{argument value {{.*}} is outside the valid range}}16 vmull_high_lane_s16(arg_i16x8, arg_i16x4, 4); // expected-error-re {{argument value {{.*}} is outside the valid range}}17 18 vmull_laneq_s16(arg_i16x4, arg_i16x8, 0);19 vmull_laneq_s16(arg_i16x4, arg_i16x8, 7);20 vmull_laneq_s16(arg_i16x4, arg_i16x8, -1); // expected-error-re {{argument value {{.*}} is outside the valid range}}21 vmull_laneq_s16(arg_i16x4, arg_i16x8, 8); // expected-error-re {{argument value {{.*}} is outside the valid range}}22 23 vmull_high_laneq_s16(arg_i16x8, arg_i16x8, 0);24 vmull_high_laneq_s16(arg_i16x8, arg_i16x8, 7);25 vmull_high_laneq_s16(arg_i16x8, arg_i16x8, -1); // expected-error-re {{argument value {{.*}} is outside the valid range}}26 vmull_high_laneq_s16(arg_i16x8, arg_i16x8, 8); // expected-error-re {{argument value {{.*}} is outside the valid range}}27 28}29 30void test_vector_multiply_by_scalar_and_widen_s32(int32x4_t arg_i32x4, int32x2_t arg_i32x2) {31 vmull_lane_s32(arg_i32x2, arg_i32x2, 0);32 vmull_lane_s32(arg_i32x2, arg_i32x2, 1);33 vmull_lane_s32(arg_i32x2, arg_i32x2, -1); // expected-error-re {{argument value {{.*}} is outside the valid range}}34 vmull_lane_s32(arg_i32x2, arg_i32x2, 2); // expected-error-re {{argument value {{.*}} is outside the valid range}}35 36 vmull_high_lane_s32(arg_i32x4, arg_i32x2, 0);37 vmull_high_lane_s32(arg_i32x4, arg_i32x2, 1);38 vmull_high_lane_s32(arg_i32x4, arg_i32x2, -1); // expected-error-re {{argument value {{.*}} is outside the valid range}}39 vmull_high_lane_s32(arg_i32x4, arg_i32x2, 2); // expected-error-re {{argument value {{.*}} is outside the valid range}}40 41 vmull_laneq_s32(arg_i32x2, arg_i32x4, 0);42 vmull_laneq_s32(arg_i32x2, arg_i32x4, 3);43 vmull_laneq_s32(arg_i32x2, arg_i32x4, -1); // expected-error-re {{argument value {{.*}} is outside the valid range}}44 vmull_laneq_s32(arg_i32x2, arg_i32x4, 4); // expected-error-re {{argument value {{.*}} is outside the valid range}}45 46 vmull_high_laneq_s32(arg_i32x4, arg_i32x4, 0);47 vmull_high_laneq_s32(arg_i32x4, arg_i32x4, 3);48 vmull_high_laneq_s32(arg_i32x4, arg_i32x4, -1); // expected-error-re {{argument value {{.*}} is outside the valid range}}49 vmull_high_laneq_s32(arg_i32x4, arg_i32x4, 4); // expected-error-re {{argument value {{.*}} is outside the valid range}}50 51}52 53void test_vector_multiply_by_scalar_and_widen_u16(uint16x8_t arg_u16x8, uint16x4_t arg_u16x4) {54 vmull_lane_u16(arg_u16x4, arg_u16x4, 0);55 vmull_lane_u16(arg_u16x4, arg_u16x4, 3);56 vmull_lane_u16(arg_u16x4, arg_u16x4, -1); // expected-error-re {{argument value {{.*}} is outside the valid range}}57 vmull_lane_u16(arg_u16x4, arg_u16x4, 4); // expected-error-re {{argument value {{.*}} is outside the valid range}}58 59 vmull_high_lane_u16(arg_u16x8, arg_u16x4, 0);60 vmull_high_lane_u16(arg_u16x8, arg_u16x4, 3);61 vmull_high_lane_u16(arg_u16x8, arg_u16x4, -1); // expected-error-re {{argument value {{.*}} is outside the valid range}}62 vmull_high_lane_u16(arg_u16x8, arg_u16x4, 4); // expected-error-re {{argument value {{.*}} is outside the valid range}}63 64 vmull_laneq_u16(arg_u16x4, arg_u16x8, 0);65 vmull_laneq_u16(arg_u16x4, arg_u16x8, 7);66 vmull_laneq_u16(arg_u16x4, arg_u16x8, -1); // expected-error-re {{argument value {{.*}} is outside the valid range}}67 vmull_laneq_u16(arg_u16x4, arg_u16x8, 8); // expected-error-re {{argument value {{.*}} is outside the valid range}}68 69 vmull_high_laneq_u16(arg_u16x8, arg_u16x8, 0);70 vmull_high_laneq_u16(arg_u16x8, arg_u16x8, 7);71 vmull_high_laneq_u16(arg_u16x8, arg_u16x8, -1); // expected-error-re {{argument value {{.*}} is outside the valid range}}72 vmull_high_laneq_u16(arg_u16x8, arg_u16x8, 8); // expected-error-re {{argument value {{.*}} is outside the valid range}}73 74}75 76void test_vector_multiply_by_scalar_and_widen_u32(uint32x2_t arg_u32x2, uint32x4_t arg_u32x4) {77 vmull_lane_u32(arg_u32x2, arg_u32x2, 0);78 vmull_lane_u32(arg_u32x2, arg_u32x2, 1);79 vmull_lane_u32(arg_u32x2, arg_u32x2, -1); // expected-error-re {{argument value {{.*}} is outside the valid range}}80 vmull_lane_u32(arg_u32x2, arg_u32x2, 2); // expected-error-re {{argument value {{.*}} is outside the valid range}}81 82 vmull_high_lane_u32(arg_u32x4, arg_u32x2, 0);83 vmull_high_lane_u32(arg_u32x4, arg_u32x2, 1);84 vmull_high_lane_u32(arg_u32x4, arg_u32x2, -1); // expected-error-re {{argument value {{.*}} is outside the valid range}}85 vmull_high_lane_u32(arg_u32x4, arg_u32x2, 2); // expected-error-re {{argument value {{.*}} is outside the valid range}}86 87 vmull_laneq_u32(arg_u32x2, arg_u32x4, 0);88 vmull_laneq_u32(arg_u32x2, arg_u32x4, 3);89 vmull_laneq_u32(arg_u32x2, arg_u32x4, -1); // expected-error-re {{argument value {{.*}} is outside the valid range}}90 vmull_laneq_u32(arg_u32x2, arg_u32x4, 4); // expected-error-re {{argument value {{.*}} is outside the valid range}}91 92 vmull_high_laneq_u32(arg_u32x4, arg_u32x4, 0);93 vmull_high_laneq_u32(arg_u32x4, arg_u32x4, 3);94 vmull_high_laneq_u32(arg_u32x4, arg_u32x4, -1); // expected-error-re {{argument value {{.*}} is outside the valid range}}95 vmull_high_laneq_u32(arg_u32x4, arg_u32x4, 4); // expected-error-re {{argument value {{.*}} is outside the valid range}}96 97}98 99