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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [mips/] [octeon2-lx-2.c] - Blame information for rev 704

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

Line No. Rev Author Line
1 691 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-march=octeon2 -O -mgp64" } */
3
 
4
#define TEST(N, T) \
5
  T f##N (T *p, int i) { return p[i]; } \
6
  unsigned T g##N (unsigned T *p, int i) { return p[i]; }
7
 
8
TEST (1, char)
9
/* { dg-final { scan-assembler-times "\tlbu?x\t" 2 } } */
10
TEST (2, short)
11
/* { dg-final { scan-assembler-times "\tlhu?x\t" 2 } } */
12
TEST (3, int)
13
/* { dg-final { scan-assembler-times "\tlwx\t" 2 } } */
14
TEST (4, long long)
15
/* { dg-final { scan-assembler-times "\tldx\t" 2 } } */

powered by: WebSVN 2.1.0

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