1 /* Make sure if conversion for two instructions does not break
2 anything (if it runs). */
5 /* { dg-options "-O2 -std=c99" } */
6 /* { dg-require-effective-target int32plus } */
11 __attribute__ ((noinline
))
12 int foo (int *a
, int n
)
16 for (int i
= 0; i
< n
; i
++)
32 int a
[] = {2, 1, -13, INT_MAX
, INT_MIN
, 0};
34 int res
= foo (a
, sizeof (a
) / sizeof (a
[0]));
36 assert (res
== (INT_MIN
+ 1));