gcc/testsuite/gcc.target/arm/vect-half-floats.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-Ofast -ftree-vectorize -fdump-tree-vect-all -std=c11" } */ |
| 3 | /* { dg-require-effective-target float16 } */ |
| 4 | /* { dg-require-effective-target arm_fp16_ok } */ |
| 5 | /* { dg-add-options float16 } */ |
| 6 | |
| 7 | void foo (_Float16 n1[], _Float16 n2[], _Float16 r[], int n) |
| 8 | { |
| 9 | for (int i = 0; i < n; i++) |
| 10 | r[i] = n1[i] + n2[i]; |
| 11 | } |
| 12 | |
| 13 | /* { dg-final { scan-tree-dump-not "LOOP VECTORIZED" "vect" } } */ |
| 14 |