Debian Codegraph @

clang/test/Sema/aarch64-neon-faminmax-no-faminmax.c

raw
1 // RUN: %clang_cc1 -triple aarch64-linux-gnu -target-feature +neon -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
14 void test() {
15 (void) vamin_f16 (a16x4, b16x4);
16 // expected-error@-1 {{always_inline function 'vamin_f16' requires target feature 'faminmax'}}
17 (void) vaminq_f16(a16x8, b16x8);
18 // expected-error@-1 {{always_inline function 'vaminq_f16' requires target feature 'faminmax'}}
19 (void) vamin_f32 (a32x2, b32x2);
20 // expected-error@-1 {{always_inline function 'vamin_f32' requires target feature 'faminmax'}}
21 (void) vaminq_f32(a32x4, b32x4);
22 // expected-error@-1 {{always_inline function 'vaminq_f32' requires target feature 'faminmax'}}
23 (void) vaminq_f64(a64x2, b64x2);
24 // expected-error@-1 {{always_inline function 'vaminq_f64' requires target feature 'faminmax'}}
25 (void) vamax_f16 (a16x4, b16x4);
26 // expected-error@-1 {{always_inline function 'vamax_f16' requires target feature 'faminmax'}}
27 (void) vamaxq_f16(a16x8, b16x8);
28 // expected-error@-1 {{always_inline function 'vamaxq_f16' requires target feature 'faminmax'}}
29 (void) vamax_f32 (a32x2, b32x2);
30 // expected-error@-1 {{always_inline function 'vamax_f32' requires target feature 'faminmax'}}
31 (void) vamaxq_f32(a32x4, b32x4);
32 // expected-error@-1 {{always_inline function 'vamaxq_f32' requires target feature 'faminmax'}}
33 (void) vamaxq_f64(a64x2, b64x2);
34 // expected-error@-1 {{always_inline function 'vamaxq_f64' requires target feature 'faminmax'}}
35 }