]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/tree-ssa/pr61839_3.c
Fix profile update in tree_transform_and_unroll_loop
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr61839_3.c
CommitLineData
22d12455
KV
1/* PR tree-optimization/61839. */
2/* { dg-do run } */
acb1e6f4 3/* { dg-options "-O2 -fdump-tree-optimized -fdisable-tree-ethread -fdisable-tree-threadfull1" } */
22d12455
KV
4
5__attribute__ ((noinline))
6int foo (int a, unsigned b)
7{
8 int c = 1;
9 b = a ? 12 : 13;
10 c = b << 8;
11 if (c == 3072)
12 ;
13 else
14 __builtin_abort ();
15 return 0;
16}
17
18int main ()
19{
20 volatile unsigned b = 1U;
21 foo (-1, b);
22}
23
22d12455 24/* { dg-final { scan-tree-dump-times "3072" 0 "optimized" } } */