aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/pr66726.c
blob: a4c7418205907a4cabdc9cb1ae74aa0b7498197d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-phiopt1-details" } */

extern unsigned short mode_size[];

int
oof (int mode)
{
  return (64 < mode_size[mode] ? 64 : mode_size[mode]);
}

/* { dg-final { scan-tree-dump-times "factor conversion out" 1 "phiopt1" } } */
/* { dg-final { scan-tree-dump-times "MIN_EXPR" 1 "phiopt1" } } */