1 /* { dg-do compile } */
11 for (int i
= 0; i
< N
; ++i
)
22 for (int i
= 0; i
< N
; ++i
)
33 for (int i
= 0; i
< N
; ++i
)
44 for (int i
= 0; i
< N
; ++i
)
47 int b
= a
< y
[i
] ? a
: y
[i
];
55 for (int i
= 0; i
< N
; ++i
)
58 int b
= a
> y
[i
] ? a
: y
[i
];
63 /* { dg-final { scan-tree-dump {can narrow to signed:17 without loss [^\n]+= -} "vect" } } */
64 /* { dg-final { scan-tree-dump {can narrow to signed:16 without loss [^\n]+= ~} "vect" } } */
65 /* { dg-final { scan-tree-dump {can narrow to signed:16 without loss [^\n]+ MIN_EXPR} "vect" } } */
66 /* { dg-final { scan-tree-dump {can narrow to signed:16 without loss [^\n]+ MAX_EXPR} "vect" } } */