view gcc/testsuite/gcc.dg/vect/fast-math-vect-pow-2.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* { dg-do compile } */

typedef double d_type;
struct
{
  d_type x;
  d_type y;
} S[100];

#define N 16
d_type foo (d_type t);

d_type
main1 ()
{
  int i;
  d_type t;

  for (i = 0; i < N; i++)
    {
      t = (d_type) i / (d_type) 10;
      S[5].x = t * t;
    }
  return S[5].x;
}

int
main (void)
{
  d_type tmp = main1 ();
}