summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/wrapped-binop-simplify.c
blob: a5d953b46c7c8288c38066d8a1bc7e3a56db0b7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/* { dg-do compile { target { { i?86-*-* x86_64-*-* s390*-*-* } && lp64 } } } */
/* { dg-options "-O2 -fdump-tree-vrp2-details" } */
/* { dg-final { scan-tree-dump-times "gimple_simplified to" 4 "vrp2" } } */

void v1 (unsigned long *in, unsigned long *out, unsigned int n)
{
  int i;

  for (i = 0; i < n; i++)
  {
    out[i] = in[i];
  }
}

void v2 (unsigned long *in, unsigned long *out, int n)
{
  int i;

  for (i = 0; i < n; i++)
  {
    out[i] = in[i];
  }
}

void v3 (unsigned long *in, unsigned long *out, unsigned int n)
{
  unsigned int i;

  for (i = 0; i < n; i++)
  {
    out[i] = in[i];
  }
}

void v4 (unsigned long *in, unsigned long *out, int n)
{
  unsigned int i;

  for (i = 0; i < n; i++)
  {
    out[i] = in[i];
  }
}