Debian Codegraph @

gcc/testsuite/gcc.dg/tree-ssa/pr114009.c

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