summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr21518.c
blob: b42d9c9f0b3c3723974c2dd9862e3d37eb50ce7e (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
/* { dg-do compile } */
/* { dg-options "-O2 -fPIC -fno-tree-pre" } */
/* { dg-require-effective-target ilp32 } */
/* { dg-require-effective-target fpic } */

extern void __attribute__ ((regparm (3)))
drawPointsLines (char type, int first, int *dd);

int
do_locator (int *call)
{
  char prephitmp5;
  int type;
  int i;

  if (call == 0)
    prephitmp5 = 1;
  else
    {
      type = *call;
      i = 0;
      do
	{
	  if (i != type)
	    drawPointsLines ((int) (char) type, 0, call);
	  i = i + 1;
	}
      while (i != 2);
      prephitmp5 = (char) type;
    }
  drawPointsLines ((int) prephitmp5, 0, call);
  return 0;
}