arm: fix typo in dg-require-effective-target [PR118089]
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr114009.c
blob3b0486e16ada63fb8b2bb606f970a6eb3c8b68ec
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" } } */
7 int
8 foo (int x)
10 x = (x / 2) * 2;
11 return (!x) * x;
14 int
15 bar (int x, int y)
17 (void) x;
18 return y * !y;
21 unsigned long long
22 baz (unsigned long long x)
24 return (!x) * x;
27 typedef int V __attribute__((vector_size (4 * sizeof (int))));
30 qux (V x)
32 return x * (x == 0);