arm: fix typo in dg-require-effective-target [PR118089]
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr94718-3.c
blobd1fb4a645044a625d62fb77270c08957a5daed49
1 /* PR tree-optimization/94718 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fno-ipa-icf -fdump-tree-optimized" } */
4 /* { dg-final { scan-tree-dump-times " \\\(int\\\) " 2 "optimized" } } */
5 /* { dg-final { scan-tree-dump-times " \\\(unsigned int\\\) " 2 "optimized" } } */
7 int
8 f1 (int x, int y)
10 return (int) ((unsigned) x | (unsigned) y);
13 int
14 f2 (int x, int y)
16 unsigned a = x;
17 unsigned b = y;
18 return a | b;
21 int
22 f3 (int x, unsigned y)
24 return (int) ((unsigned) x | y);
27 int
28 f4 (int x, unsigned y)
30 unsigned a = x;
31 return a | y;
34 unsigned
35 f5 (int x, unsigned y)
37 return (unsigned) (x | (int) y);
40 unsigned
41 f6 (int x, unsigned y)
43 int a = y;
44 return x | a;