* tree-loop-distribution.c (INCLUDE_ALGORITHM): New header file.
[official-gcc.git] / gcc / testsuite / gcc.dg / pr66299-2.c
blobc75c539a41f69afe65df11169fa0b08adb676480
1 /* PR tree-optimization/66299 */
2 /* { dg-do run } */
3 /* { dg-options "-fdump-tree-optimized -O" } */
4 /* { dg-require-effective-target int32plus } */
6 void
7 test1 (int x, unsigned u)
9 if ((1U << x) != 64
10 || (2 << x) != u
11 || (x << x) != 384
12 || (3 << x) == 9
13 || (x << 14) != 98304U
14 || (1 << x) == 14
15 || (3 << 2) != 12)
16 __builtin_abort ();
19 void
20 test2 (int x)
22 unsigned int t = ((unsigned int) 1U << x);
23 if (t != 2U)
24 __builtin_abort ();
27 int
28 main (void)
30 test1 (6, 128U);
31 test2 (1);
34 /* { dg-final { scan-tree-dump-not "<<" "optimized" } } */