Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gcc.dg / fold-convminconv-1.c
blob7070ecf337ceb20b57638ce18052b6418727c735
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-optimized" } */
4 typedef int int32_t __attribute__((mode (__SI__)));
5 typedef unsigned uint32_t __attribute__((mode (__SI__)));
7 int32_t foo (unsigned short a[], uint32_t x)
9 uint32_t i;
10 for (i = 0; i < 1000; i++)
12 x = a[i];
13 a[i] = (x >= 255 ? 255 : x);
15 return x;
18 /* { dg-final { scan-tree-dump-not " = MIN_EXPR <x_\[0-9\]*" "optimized" } } */