Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / indexed-addr.c
blob6933b23e01a207dd41af7a51cc748aa6ede4b9d2
1 /* { dg-do compile { target { powerpc*-*-* } } } */
2 /* { dg-options "-O2" } */
4 /* { dg-final { scan-assembler "3,\.*3,\.*4" } }
6 /* Ensure that indexed address are output with base address in rA position
7 and index in rB position. */
9 char
10 do_one (char *base, unsigned long offset)
12 return base[offset];