PR tree-optimization/81303
[official-gcc.git] / gcc / testsuite / gcc.dg / fold-condcmpconv-1.c
blob321294f4b9636f992fb0593c13c8bcadb69e1c61
1 /* { dg-do compile } */
2 /* { dg-options "-O3 -fdump-tree-ifcvt" } */
4 int foo (unsigned short a[], unsigned int x)
6 unsigned int i;
7 for (i = 0; i < 1000; i++)
9 x = a[i];
10 a[i] = (unsigned short)(x >= 255 ? 255 : x);
11 } return x;
14 /* { dg-final { scan-tree-dump " = MIN_EXPR <" "ifcvt" } } */