libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / fmax-fmin-1.c
blobe7e0518d8bbfcb9c78c44c77f9177ceaf77eb364
1 /* { dg-options "-O -fdump-tree-optimized" } */
3 void
4 f1 (double *res, double x, double y)
6 res[0] = __builtin_fmax (x, y);
7 res[1] = __builtin_fmax (y, x);
10 void
11 f2 (double *res, double x, double y)
13 res[0] = __builtin_fmin (x, y);
14 res[1] = __builtin_fmin (y, x);
17 /* { dg-final { scan-tree-dump-times {__builtin_fmax} 1 "optimized" } } */
18 /* { dg-final { scan-tree-dump-times {__builtin_fmin} 1 "optimized" } } */