gcc/testsuite/gcc.dg/fmax-fmin-1.c
raw| 1 | /* { dg-options "-O -fdump-tree-optimized" } */ |
| 2 | |
| 3 | void |
| 4 | f1 (double *res, double x, double y) |
| 5 | { |
| 6 | res[0] = __builtin_fmax (x, y); |
| 7 | res[1] = __builtin_fmax (y, x); |
| 8 | } |
| 9 | |
| 10 | void |
| 11 | f2 (double *res, double x, double y) |
| 12 | { |
| 13 | res[0] = __builtin_fmin (x, y); |
| 14 | res[1] = __builtin_fmin (y, x); |
| 15 | } |
| 16 | |
| 17 | /* { dg-final { scan-tree-dump-times {__builtin_fmax} 1 "optimized" } } */ |
| 18 | /* { dg-final { scan-tree-dump-times {__builtin_fmin} 1 "optimized" } } */ |