blob: 0d0edab03639e18de57fe95622f6eb8dccac5978 [file] [log] [blame]
/* { dg-do compile { target { ! ia32 } } } */
/* { dg-require-effective-target maybe_x32 } */
/* { dg-options "-maddress-mode=short -mx32 -Ofast -funroll-loops -march=haswell" } */
/* { dg-final { scan-assembler-not "\tvgather" } } */
/* { dg-final { scan-assembler "addr32 vgather" } } */
void foo (void);
extern float *ncost;
float
bar (int type, int num)
{
int i;
float cost;
cost = 0;
for (i = 0; i < num; i++)
if (type)
cost += ncost[i];
else
foo ();
return (cost);
}