| 1 |
// RUN: %clang_cc1 -triple aarch64-linux-gnu -target-feature +neon -target-feature +v8.4a -ffreestanding -fsyntax-only -verify %s |
| 2 |
|
| 3 |
#include <arm_neon.h> |
| 4 |
// REQUIRES: aarch64-registered-target |
| 5 |
|
| 6 |
|
| 7 |
void test_fused_multiply_accumulate_f16(float32x2_t arg_f32x2, float32x4_t arg_f32x4, float16x4_t arg_f16x4, float16x8_t arg_f16x8) { |
| 8 |
vfmlal_lane_low_f16(arg_f32x2, arg_f16x4, arg_f16x4, 0); |
| 9 |
vfmlal_lane_low_f16(arg_f32x2, arg_f16x4, arg_f16x4, 3); |
| 10 |
vfmlal_lane_low_f16(arg_f32x2, arg_f16x4, arg_f16x4, -1); // expected-error-re +{{argument value {{.*}} is outside the valid range}} |
| 11 |
vfmlal_lane_low_f16(arg_f32x2, arg_f16x4, arg_f16x4, 4); // expected-error-re +{{argument value {{.*}} is outside the valid range}} |
| 12 |
|
| 13 |
vfmlal_laneq_low_f16(arg_f32x2, arg_f16x4, arg_f16x8, 0); |
| 14 |
vfmlal_laneq_low_f16(arg_f32x2, arg_f16x4, arg_f16x8, 7); |
| 15 |
vfmlal_laneq_low_f16(arg_f32x2, arg_f16x4, arg_f16x8, -1); // expected-error-re +{{argument value {{.*}} is outside the valid range}} |
| 16 |
vfmlal_laneq_low_f16(arg_f32x2, arg_f16x4, arg_f16x8, 8); // expected-error-re +{{argument value {{.*}} is outside the valid range}} |
| 17 |
|
| 18 |
vfmlalq_lane_low_f16(arg_f32x4, arg_f16x8, arg_f16x4, 0); |
| 19 |
vfmlalq_lane_low_f16(arg_f32x4, arg_f16x8, arg_f16x4, 3); |
| 20 |
vfmlalq_lane_low_f16(arg_f32x4, arg_f16x8, arg_f16x4, -1); // expected-error-re +{{argument value {{.*}} is outside the valid range}} |
| 21 |
vfmlalq_lane_low_f16(arg_f32x4, arg_f16x8, arg_f16x4, 4); // expected-error-re +{{argument value {{.*}} is outside the valid range}} |
| 22 |
|
| 23 |
vfmlalq_laneq_low_f16(arg_f32x4, arg_f16x8, arg_f16x8, 0); |
| 24 |
vfmlalq_laneq_low_f16(arg_f32x4, arg_f16x8, arg_f16x8, 7); |
| 25 |
vfmlalq_laneq_low_f16(arg_f32x4, arg_f16x8, arg_f16x8, -1); // expected-error-re +{{argument value {{.*}} is outside the valid range}} |
| 26 |
vfmlalq_laneq_low_f16(arg_f32x4, arg_f16x8, arg_f16x8, 8); // expected-error-re +{{argument value {{.*}} is outside the valid range}} |
| 27 |
|
| 28 |
vfmlsl_lane_low_f16(arg_f32x2, arg_f16x4, arg_f16x4, 0); |
| 29 |
vfmlsl_lane_low_f16(arg_f32x2, arg_f16x4, arg_f16x4, 3); |
| 30 |
vfmlsl_lane_low_f16(arg_f32x2, arg_f16x4, arg_f16x4, -1); // expected-error-re +{{argument value {{.*}} is outside the valid range}} |
| 31 |
vfmlsl_lane_low_f16(arg_f32x2, arg_f16x4, arg_f16x4, 4); // expected-error-re +{{argument value {{.*}} is outside the valid range}} |
| 32 |
|
| 33 |
vfmlsl_laneq_low_f16(arg_f32x2, arg_f16x4, arg_f16x8, 0); |
| 34 |
vfmlsl_laneq_low_f16(arg_f32x2, arg_f16x4, arg_f16x8, 7); |
| 35 |
vfmlsl_laneq_low_f16(arg_f32x2, arg_f16x4, arg_f16x8, -1); // expected-error-re +{{argument value {{.*}} is outside the valid range}} |
| 36 |
vfmlsl_laneq_low_f16(arg_f32x2, arg_f16x4, arg_f16x8, 8); // expected-error-re +{{argument value {{.*}} is outside the valid range}} |
| 37 |
|
| 38 |
vfmlslq_lane_low_f16(arg_f32x4, arg_f16x8, arg_f16x4, 0); |
| 39 |
vfmlslq_lane_low_f16(arg_f32x4, arg_f16x8, arg_f16x4, 3); |
| 40 |
vfmlslq_lane_low_f16(arg_f32x4, arg_f16x8, arg_f16x4, -1); // expected-error-re +{{argument value {{.*}} is outside the valid range}} |
| 41 |
vfmlslq_lane_low_f16(arg_f32x4, arg_f16x8, arg_f16x4, 4); // expected-error-re +{{argument value {{.*}} is outside the valid range}} |
| 42 |
|
| 43 |
vfmlslq_laneq_low_f16(arg_f32x4, arg_f16x8, arg_f16x8, 0); |
| 44 |
vfmlslq_laneq_low_f16(arg_f32x4, arg_f16x8, arg_f16x8, 7); |
| 45 |
vfmlslq_laneq_low_f16(arg_f32x4, arg_f16x8, arg_f16x8, -1); // expected-error-re +{{argument value {{.*}} is outside the valid range}} |
| 46 |
vfmlslq_laneq_low_f16(arg_f32x4, arg_f16x8, arg_f16x8, 8); // expected-error-re +{{argument value {{.*}} is outside the valid range}} |
| 47 |
|
| 48 |
vfmlal_lane_high_f16(arg_f32x2, arg_f16x4, arg_f16x4, 0); |
| 49 |
vfmlal_lane_high_f16(arg_f32x2, arg_f16x4, arg_f16x4, 3); |
| 50 |
vfmlal_lane_high_f16(arg_f32x2, arg_f16x4, arg_f16x4, -1); // expected-error-re +{{argument value {{.*}} is outside the valid range}} |
| 51 |
vfmlal_lane_high_f16(arg_f32x2, arg_f16x4, arg_f16x4, 4); // expected-error-re +{{argument value {{.*}} is outside the valid range}} |
| 52 |
|
| 53 |
vfmlsl_lane_high_f16(arg_f32x2, arg_f16x4, arg_f16x4, 0); |
| 54 |
vfmlsl_lane_high_f16(arg_f32x2, arg_f16x4, arg_f16x4, 3); |
| 55 |
vfmlsl_lane_high_f16(arg_f32x2, arg_f16x4, arg_f16x4, -1); // expected-error-re +{{argument value {{.*}} is outside the valid range}} |
| 56 |
vfmlsl_lane_high_f16(arg_f32x2, arg_f16x4, arg_f16x4, 4); // expected-error-re +{{argument value {{.*}} is outside the valid range}} |
| 57 |
|
| 58 |
vfmlalq_lane_high_f16(arg_f32x4, arg_f16x8, arg_f16x4, 0); |
| 59 |
vfmlalq_lane_high_f16(arg_f32x4, arg_f16x8, arg_f16x4, 3); |
| 60 |
vfmlalq_lane_high_f16(arg_f32x4, arg_f16x8, arg_f16x4, -1); // expected-error-re +{{argument value {{.*}} is outside the valid range}} |
| 61 |
vfmlalq_lane_high_f16(arg_f32x4, arg_f16x8, arg_f16x4, 4); // expected-error-re +{{argument value {{.*}} is outside the valid range}} |
| 62 |
|
| 63 |
vfmlslq_lane_high_f16(arg_f32x4, arg_f16x8, arg_f16x4, 0); |
| 64 |
vfmlslq_lane_high_f16(arg_f32x4, arg_f16x8, arg_f16x4, 3); |
| 65 |
vfmlslq_lane_high_f16(arg_f32x4, arg_f16x8, arg_f16x4, -1); // expected-error-re +{{argument value {{.*}} is outside the valid range}} |
| 66 |
vfmlslq_lane_high_f16(arg_f32x4, arg_f16x8, arg_f16x4, 4); // expected-error-re +{{argument value {{.*}} is outside the valid range}} |
| 67 |
|
| 68 |
vfmlal_laneq_high_f16(arg_f32x2, arg_f16x4, arg_f16x8, 0); |
| 69 |
vfmlal_laneq_high_f16(arg_f32x2, arg_f16x4, arg_f16x8, 7); |
| 70 |
vfmlal_laneq_high_f16(arg_f32x2, arg_f16x4, arg_f16x8, -1); // expected-error-re +{{argument value {{.*}} is outside the valid range}} |
| 71 |
vfmlal_laneq_high_f16(arg_f32x2, arg_f16x4, arg_f16x8, 8); // expected-error-re +{{argument value {{.*}} is outside the valid range}} |
| 72 |
|
| 73 |
vfmlsl_laneq_high_f16(arg_f32x2, arg_f16x4, arg_f16x8, 0); |
| 74 |
vfmlsl_laneq_high_f16(arg_f32x2, arg_f16x4, arg_f16x8, 7); |
| 75 |
vfmlsl_laneq_high_f16(arg_f32x2, arg_f16x4, arg_f16x8, -1); // expected-error-re +{{argument value {{.*}} is outside the valid range}} |
| 76 |
vfmlsl_laneq_high_f16(arg_f32x2, arg_f16x4, arg_f16x8, 8); // expected-error-re +{{argument value {{.*}} is outside the valid range}} |
| 77 |
|
| 78 |
vfmlalq_laneq_high_f16(arg_f32x4, arg_f16x8, arg_f16x8, 0); |
| 79 |
vfmlalq_laneq_high_f16(arg_f32x4, arg_f16x8, arg_f16x8, 7); |
| 80 |
vfmlalq_laneq_high_f16(arg_f32x4, arg_f16x8, arg_f16x8, -1); // expected-error-re +{{argument value {{.*}} is outside the valid range}} |
| 81 |
vfmlalq_laneq_high_f16(arg_f32x4, arg_f16x8, arg_f16x8, 8); // expected-error-re +{{argument value {{.*}} is outside the valid range}} |
| 82 |
|
| 83 |
vfmlslq_laneq_high_f16(arg_f32x4, arg_f16x8, arg_f16x8, 0); |
| 84 |
vfmlslq_laneq_high_f16(arg_f32x4, arg_f16x8, arg_f16x8, 7); |
| 85 |
vfmlslq_laneq_high_f16(arg_f32x4, arg_f16x8, arg_f16x8, -1); // expected-error-re +{{argument value {{.*}} is outside the valid range}} |
| 86 |
vfmlslq_laneq_high_f16(arg_f32x4, arg_f16x8, arg_f16x8, 8); // expected-error-re +{{argument value {{.*}} is outside the valid range}} |
| 87 |
|
| 88 |
} |
| 89 |
|