OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [powerpc/] [avoid-indexed-addresses.c] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 691 jeremybenn
/* { dg-do compile { target { powerpc*-*-* } } } */
2
/* { dg-options "-O2 -mavoid-indexed-addresses -mno-altivec -mno-vsx" } */
3
 
4
/* { dg-final { scan-assembler-not "lbzx" } }
5
 
6
/* Ensure that an indexed load is not generated with
7
   -mavoid-indexed-addresses. */
8
 
9
char
10
do_one (char *base, unsigned long offset)
11
{
12
  return base[offset];
13
}
14
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.