Debian Codegraph @

gcc/testsuite/gcc.dg/vect/complex/fast-math-complex-add-pattern-half-float.c

raw
1 /* { dg-do compile } */
2 /* { dg-additional-options "-ffast-math" } */
3 /* { dg-require-effective-target vect_complex_add_half } */
4 /* { dg-require-effective-target float16 } */
5 /* { dg-add-options arm_v8_3a_fp16_complex_neon } */
6
7 #define TYPE _Float16
8 #define N 200
9 #include "complex-add-pattern-template.c"
10
11 /* { dg-final { scan-tree-dump-times "stmt.*COMPLEX_ADD_ROT90" 1 "vect" { target { vect_complex_add_half } } } } */
12 /* { dg-final { scan-tree-dump-times "stmt.*COMPLEX_ADD_ROT270" 1 "vect" { target { vect_complex_add_half } && ! target { arm*-*-* } } } } */
13
14 /* { dg-final { scan-tree-dump "Found COMPLEX_ADD_ROT270" "vect" } } */
15 /* { dg-final { scan-tree-dump "Found COMPLEX_ADD_ROT90" "vect" } } */