1/* { dg-do compile { target { powerpc*-*-* } } } */
2/* { dg-options "-O2" } */
3
4/* { dg-final { scan-assembler "3,\.*3,\.*4" } }
5
6/* Ensure that indexed address are output with base address in rA position
7   and index in rB position.  */
8
9char
10do_one (char *base, unsigned long offset)
11{
12  return base[offset];
13}
14
15