PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr79901.c
blob6fdcf767362889f375d2101c9a7f0bf5affedfa3
1 /* PR rtl-optimization/79901 */
2 /* { dg-do compile } */
3 /* { dg-options "-O3 -mavx512f -fno-ssa-phiopt" } */
5 unsigned int
6 foo (const unsigned long long x)
8 if (x < 0)
9 return 0;
10 else if ( x > ~0U)
11 return ~0U;
12 else
13 return (unsigned int) x;
16 void
17 bar (unsigned x, unsigned int *y, unsigned int z)
19 unsigned i;
20 for (i = 0; i < x; i++)
21 y[i] = foo (y[i] * (unsigned long long) z);