Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/declare-simd-1.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-fopenmp-simd" } */
3 #ifdef __cplusplus
4 extern "C" {
5 #endif
6 #pragma omp declare simd
7 int __attribute__ ((const)) f00 (int a , char b) /* { dg-warning {GCC does not currently support a simdclone with simdlens 8 and 16 for these types.} } */
8 {
9 return a + b;
10 }
11
12 #pragma omp declare simd
13 long long __attribute__ ((const)) f01 (int a , short b) /* { dg-warning {GCC does not currently support a simdclone with simdlens 4 and 8 for these types.} } */
14 {
15 return a + b;
16 }
17
18 #pragma omp declare simd linear(b)
19 long long __attribute__ ((const)) f02 (short *b, int a) /* { dg-warning {GCC does not currently support a simdclone with simdlens 4 and 8 for these types.} } */
20 {
21 return a + *b;
22 }
23
24 #pragma omp declare simd uniform(b)
25 void f03 (char b, int a) /* { dg-warning {GCC does not currently support a simdclone with simdlens 8 and 16 for these types.} } */
26 {
27 }
28
29 #pragma omp declare simd simdlen(4)
30 double f04 (void) /* { dg-warning {GCC does not currently support simdlen 4 for type 'double'} } */
31 {
32 return 4;
33 }
34
35 #pragma omp declare simd simdlen(16)
36 void f05 (short a) /* { dg-warning {GCC does not currently support simdlen 16 for type 'short int'} } */
37 {
38 }
39 #ifdef __cplusplus
40 }
41 #endif
42