aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/pr105041.c
blob: e5144b293a3a77bfe94d495dd954a1845df7e428 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* { dg-options "-mdejagnu-cpu=power4 -O2 -fcompare-debug -fharden-compares -frename-registers" } */

double m;
int n;

unsigned int
foo (unsigned int x, int y)
{
  long long int a = y, b = !a;
  int c = 0;

  if (b != x)
    while ((int) m == a)
      {
        c = a;
        a = 0;
      }

  n = b = y;

  return x + c;
}