| 1 |
// RUN: %clang_cc1 -triple aarch64-linux-gnu -target-feature +faminmax -emit-llvm -verify %s -o /dev/null |
| 2 |
|
| 3 |
// REQUIRES: aarch64-registered-target |
| 4 |
|
| 5 |
#include <arm_neon.h> |
| 6 |
|
| 7 |
float16x4_t a16x4, b16x4; |
| 8 |
float16x8_t a16x8, b16x8; |
| 9 |
float32x2_t a32x2, b32x2; |
| 10 |
float32x4_t a32x4, b32x4; |
| 11 |
float64x2_t a64x2, b64x2; |
| 12 |
|
| 13 |
void test () { |
| 14 |
(void) vamin_f16 (a16x4, b16x4); |
| 15 |
// expected-error@-1 {{always_inline function 'vamin_f16' requires target feature 'neon'}} |
| 16 |
(void) vaminq_f16(a16x8, b16x8); |
| 17 |
// expected-error@-1 {{always_inline function 'vaminq_f16' requires target feature 'neon'}} |
| 18 |
(void) vamin_f32 (a32x2, b32x2); |
| 19 |
// expected-error@-1 {{always_inline function 'vamin_f32' requires target feature 'neon'}} |
| 20 |
(void) vaminq_f32(a32x4, b32x4); |
| 21 |
// expected-error@-1 {{always_inline function 'vaminq_f32' requires target feature 'neon'}} |
| 22 |
(void) vaminq_f64(a64x2, b64x2); |
| 23 |
// expected-error@-1 {{always_inline function 'vaminq_f64' requires target feature 'neon'}} |
| 24 |
(void) vamax_f16 (a16x4, b16x4); |
| 25 |
// expected-error@-1 {{always_inline function 'vamax_f16' requires target feature 'neon'}} |
| 26 |
(void) vamaxq_f16(a16x8, b16x8); |
| 27 |
// expected-error@-1 {{always_inline function 'vamaxq_f16' requires target feature 'neon'}} |
| 28 |
(void) vamax_f32 (a32x2, b32x2); |
| 29 |
// expected-error@-1 {{always_inline function 'vamax_f32' requires target feature 'neon'}} |
| 30 |
(void) vamaxq_f32(a32x4, b32x4); |
| 31 |
// expected-error@-1 {{always_inline function 'vamaxq_f32' requires target feature 'neon'}} |
| 32 |
(void) vamaxq_f64(a64x2, b64x2); |
| 33 |
// expected-error@-1 {{always_inline function 'vamaxq_f64' requires target feature 'neon'}} |
| 34 |
} |