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

double test (double x)
{
  double s, c;
  __builtin_sincos (x, &s, &c);
  return s + c;
}

/* { dg-final { scan-tree-dump "__builtin_cexpi" "gimple" } } */
/* { dg-final { scan-tree-dump-not "sincos" "gimple" } } */
/* { dg-final { cleanup-tree-dump "gimple" } } */