2018-05-17 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr42889.c
bloba8e9e6088abb84a70733f6de870763c336f2201b
1 /* PR rtl-optimization/42889 */
2 /* { dg-do compile } */
3 /* { dg-options "-O -fgcse -fcompare-debug" } */
4 /* { dg-xfail-if "" { powerpc-ibm-aix* } } */
6 extern int A[], B[];
8 int
9 foo (int x, int c, int i)
11 if (A[i] && B[i])
12 x = x % ((c & 4) ? 8 : 4);
13 return x;