blob: 3b0486e16ada63fb8b2bb606f970a6eb3c8b68ec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
/* PR tree-optimization/114009 */
/* { dg-do compile } */
/* { dg-options "-O2 -Wno-psabi -fdump-tree-forwprop1" } */
/* { dg-final { scan-tree-dump-times " return 0;" 3 "forwprop1" } } */
/* { dg-final { scan-tree-dump-times " (?:return|<retval> =) { 0, 0, 0, 0 };" 1 "forwprop1" } } */
int
foo (int x)
{
x = (x / 2) * 2;
return (!x) * x;
}
int
bar (int x, int y)
{
(void) x;
return y * !y;
}
unsigned long long
baz (unsigned long long x)
{
return (!x) * x;
}
typedef int V __attribute__((vector_size (4 * sizeof (int))));
V
qux (V x)
{
return x * (x == 0);
}
|