Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/sqrt_div_float16.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -ffast-math -fdump-tree-forwprop-details" } */
3 /* { dg-require-effective-target c99_runtime } */
4
5 #pragma GCC target ("arch=armv8.2-a+fp16")
6
7 _Float16 f (_Float16 x)
8 {
9 _Float16 t1 = __builtin_sqrt (x);
10 _Float16 t2 = x / t1;
11 return t2;
12 }
13
14 /* { dg-final { scan-tree-dump "gimple_simplified to t2_\[0-9\]+ = .SQRT .x_\[0-9\]*.D.." "forwprop1" } } */