i386: Implement .SAT_TRUNC for unsigned integers
[official-gcc.git] / gcc / testsuite / gcc.dg / pr50017.c
blob66bef007da15ab565868c9222bf096c78e263ab3
1 /* PR debug/50017 */
2 /* { dg-do compile } */
3 /* { dg-options "-O3 -fcompare-debug" } */
5 struct S { int r, i; };
7 void
8 foo (struct S *x, int y)
10 int i;
11 for (i = 1; i < y; i++)
13 struct S a, b, c;
14 a = x[0];
15 b = x[i];
16 c.r = a.r * b.r - a.i * b.i;
17 c.i = a.r * b.i + a.i * b.r;
18 x[i] = c;