gcc/testsuite/gcc.dg/tree-ssa/cabs-1.c
raw| 1 | /* { dg-do compile { target sqrt_insn } } */ |
| 2 | /* { dg-options "-Ofast -fdump-tree-cplxlower1" } */ |
| 3 | /* { dg-add-options sqrt_insn } */ |
| 4 | |
| 5 | |
| 6 | double f(_Complex double a) |
| 7 | { |
| 8 | a+= 1.0f; |
| 9 | return __builtin_cabs(a); |
| 10 | } |
| 11 | |
| 12 | /* Check that cabs is expanded during complex lowering. */ |
| 13 | /* { dg-final { scan-tree-dump-not "__builtin_cabs " "cplxlower1" } } */ |
| 14 | /* { dg-final { scan-tree-dump "__builtin_sqrt " "cplxlower1" } } */ |