summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/builtins-60.c
blob: b57679f36eb0d216e0b11c84496caa1b2c9788b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do compile } */
/* { dg-options "-fdump-tree-gimple" } */

double test1 (double x)
{
  return __real __builtin_cexpi (x);
}

double test2 (double x)
{
  return __imag __builtin_cexpi (x);
}

/* { dg-final { scan-tree-dump "cos" "gimple" } } */
/* { dg-final { scan-tree-dump "sin" "gimple" } } */
/* { dg-final { cleanup-tree-dump "gimple" } } */