aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/i386/pr56903.c
blob: 9e6a1c3916d7199d5b8041cfebe988cb70aac1e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* PR rtl-optimization/56903 */
/* { dg-do compile } */
/* { dg-options "-Os" } */
/* { dg-additional-options "-march=pentium3" { target ia32 } } */

int a, *b, c;
struct S { int s : 1; } *fn1 (void);
extern int fn3 (void), fn4 (int *);

void
fn2 (void)
{
  int e = fn3 ();
  char f = c + fn1 ()->s * 4;
  if (*b && f == e)
    a = *b;
  fn4 (b);
}