RISC-V: Fix snafu in SI mode splitters patch
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 950221-1.c
blob974b8731f066b8532a50a4ddf9535ce11f8b1000
1 /* { dg-add-options stack_size } */
3 void abort (void);
4 void exit (int);
6 struct parsefile
8 long fd;
9 char *buf;
11 struct parsefile basepf;
12 struct parsefile *parsefile = &basepf;
13 #ifdef STACK_SIZE
14 int filler[STACK_SIZE / (2*sizeof(int))];
15 #else
16 int filler[0x3000];
17 #endif
18 int el;
20 char *
21 g1 (a, b)
22 int a;
23 int *b;
27 int
28 g2 (a)
29 long a;
31 if (a != 0xdeadbeefL)
32 abort ();
33 exit (0);
36 void
37 f (void)
39 register char *p, *q;
40 register int i;
41 register int something;
43 if (parsefile->fd == 0L && el)
45 const char *rl_cp;
46 int len;
47 rl_cp = g1 (el, &len);
48 __builtin_strcpy (p, rl_cp);
50 else
52 alabel:
53 i = g2 (parsefile->fd);
57 int
58 main (void)
60 el = 0;
61 parsefile->fd = 0xdeadbeefL;
62 f ();