summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/cris/rld-legit2.c
blob: 0add3e2b5c699fe1f59f892f030797c13bb0f45c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* A variant of rld-legit1.c only for full code coverage of the
   initial version of cris_reload_address_legitimized.  */
/* { dg-options -O2 } */

short *
g (short *a, char *y)
{
  __asm__ ("" : : :
#ifndef __PIC__
	   "r0",
#endif
	   "r1", "r2", "r3", "r4", "r5", "r6", "r7", "r8",
	   "r9", "r10", "r11", "r12", "r13");
  y[*a++] = 0;
  return a;
}