summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/auto-init-4.c
blob: 5b4fd870c36c1b254f71c98efa49cd90df45ae95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* Verify pattern initialization for floating point type automatic variables.  */
/* { dg-do compile } */
/* { dg-options "-ftrivial-auto-var-init=pattern -march=x86-64 -mtune=generic -msse" } */

long double result;

long double foo()
{
  float temp1;
  double temp2;
  long double temp3;

  result = temp1 + temp2 + temp3;
  return result;
}


/* The long double init isn't expanded optimally, see PR105259.  For ia32
   it uses zero-initialization.  */
/* { dg-final { scan-assembler-times "long\t-16843010" 3 } } */