70 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_multiply_extended_f32(float32_t arg_f32, float32x2_t arg_f32x2, float32x4_t arg_f32x4) {8 vmulx_lane_f32(arg_f32x2, arg_f32x2, 0);9 vmulx_lane_f32(arg_f32x2, arg_f32x2, 1);10 vmulx_lane_f32(arg_f32x2, arg_f32x2, -1); // expected-error-re {{argument value {{.*}} is outside the valid range}}11 vmulx_lane_f32(arg_f32x2, arg_f32x2, 2); // expected-error-re {{argument value {{.*}} is outside the valid range}}12 13 vmulxq_lane_f32(arg_f32x4, arg_f32x2, 0);14 vmulxq_lane_f32(arg_f32x4, arg_f32x2, 1);15 vmulxq_lane_f32(arg_f32x4, arg_f32x2, -1); // expected-error-re {{argument value {{.*}} is outside the valid range}}16 vmulxq_lane_f32(arg_f32x4, arg_f32x2, 2); // expected-error-re {{argument value {{.*}} is outside the valid range}}17 18 vmulxs_lane_f32(arg_f32, arg_f32x2, 0);19 vmulxs_lane_f32(arg_f32, arg_f32x2, 1);20 vmulxs_lane_f32(arg_f32, arg_f32x2, -1); // expected-error-re {{argument value {{.*}} is outside the valid range}}21 vmulxs_lane_f32(arg_f32, arg_f32x2, 2); // expected-error-re {{argument value {{.*}} is outside the valid range}}22 23 vmulx_laneq_f32(arg_f32x2, arg_f32x4, 0);24 vmulx_laneq_f32(arg_f32x2, arg_f32x4, 3);25 vmulx_laneq_f32(arg_f32x2, arg_f32x4, -1); // expected-error-re {{argument value {{.*}} is outside the valid range}}26 vmulx_laneq_f32(arg_f32x2, arg_f32x4, 4); // expected-error-re {{argument value {{.*}} is outside the valid range}}27 28 vmulxq_laneq_f32(arg_f32x4, arg_f32x4, 0);29 vmulxq_laneq_f32(arg_f32x4, arg_f32x4, 3);30 vmulxq_laneq_f32(arg_f32x4, arg_f32x4, -1); // expected-error-re {{argument value {{.*}} is outside the valid range}}31 vmulxq_laneq_f32(arg_f32x4, arg_f32x4, 4); // expected-error-re {{argument value {{.*}} is outside the valid range}}32 33 vmulxs_laneq_f32(arg_f32, arg_f32x4, 0);34 vmulxs_laneq_f32(arg_f32, arg_f32x4, 3);35 vmulxs_laneq_f32(arg_f32, arg_f32x4, -1); // expected-error-re {{argument value {{.*}} is outside the valid range}}36 vmulxs_laneq_f32(arg_f32, arg_f32x4, 4); // expected-error-re {{argument value {{.*}} is outside the valid range}}37 38}39 40void test_multiply_extended_f64(float64_t arg_f64, float64x2_t arg_f64x2, float64x1_t arg_f64x1) {41 vmulx_lane_f64(arg_f64x1, arg_f64x1, 0);42 vmulx_lane_f64(arg_f64x1, arg_f64x1, -1); // expected-error-re +{{argument value {{.*}} is outside the valid range}}43 vmulx_lane_f64(arg_f64x1, arg_f64x1, 1); // expected-error-re +{{argument value {{.*}} is outside the valid range}}44 45 vmulxq_lane_f64(arg_f64x2, arg_f64x1, 0);46 vmulxq_lane_f64(arg_f64x2, arg_f64x1, -1); // expected-error-re {{argument value {{.*}} is outside the valid range}}47 vmulxq_lane_f64(arg_f64x2, arg_f64x1, 1); // expected-error-re {{argument value {{.*}} is outside the valid range}}48 49 vmulxd_lane_f64(arg_f64, arg_f64x1, 0);50 vmulxd_lane_f64(arg_f64, arg_f64x1, -1); // expected-error-re {{argument value {{.*}} is outside the valid range}}51 vmulxd_lane_f64(arg_f64, arg_f64x1, 1); // expected-error-re {{argument value {{.*}} is outside the valid range}}52 53 vmulx_laneq_f64(arg_f64x1, arg_f64x2, 0);54 vmulx_laneq_f64(arg_f64x1, arg_f64x2, 1);55 vmulx_laneq_f64(arg_f64x1, arg_f64x2, -1); // expected-error-re {{argument value {{.*}} is outside the valid range}}56 vmulx_laneq_f64(arg_f64x1, arg_f64x2, 2); // expected-error-re {{argument value {{.*}} is outside the valid range}}57 58 vmulxq_laneq_f64(arg_f64x2, arg_f64x2, 0);59 vmulxq_laneq_f64(arg_f64x2, arg_f64x2, 1);60 vmulxq_laneq_f64(arg_f64x2, arg_f64x2, -1); // expected-error-re {{argument value {{.*}} is outside the valid range}}61 vmulxq_laneq_f64(arg_f64x2, arg_f64x2, 2); // expected-error-re {{argument value {{.*}} is outside the valid range}}62 63 vmulxd_laneq_f64(arg_f64, arg_f64x2, 0);64 vmulxd_laneq_f64(arg_f64, arg_f64x2, 1);65 vmulxd_laneq_f64(arg_f64, arg_f64x2, -1); // expected-error-re {{argument value {{.*}} is outside the valid range}}66 vmulxd_laneq_f64(arg_f64, arg_f64x2, 2); // expected-error-re {{argument value {{.*}} is outside the valid range}}67 68}69 70