summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/x86_64/abi/callabi/func-2b.c
blob: fe85dd1860d2b2495ead3e392bb02858cc8f8bfb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* Test for cross x86_64<->w64 abi standard calls.  */
/* { dg-options "-mabi=ms -std=gnu99 -ffast-math -fno-builtin" } */

long double func_cross (long double a, double b, float c, long d, int e,
			char f)
{
  long double ret;
  ret = a + (long double) b + (long double) c;
  ret *= (long double) (d + (long) e);
  if (f>0)
    ret += func_cross (a,b,c,d,e,-f);
  return ret;
}