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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [20001226-1.c] - Blame information for rev 299

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

Line No. Rev Author Line
1 297 jeremybenn
/* This does not assemble on m68hc11 because the function is larger
2
   than 64K.  */
3
/* { dg-do assemble } */
4
/* { dg-xfail-if "function larger than 64K" { m6811-*-* } { "*" } { "" } } */
5
/* { dg-skip-if "too much code for avr" { "avr-*-*" } { "*" } { "" } } */
6
/* { dg-xfail-if "jump beyond 128K not supported" { xtensa*-*-* } { "-O0" } { "" } } */
7
/* { dg-xfail-if "PR36698" { spu-*-* } { "-O0" } { "" } } */
8
/* { dg-skip-if "" { m32c-*-* } { "*" } { "" } } */
9
/* { dg-timeout-factor 4.0 } */
10
 
11
/* This testcase exposed two branch shortening bugs on powerpc.  */
12
 
13
#define C(a,b) \
14
  if (a > b)  goto gt; \
15
  if (a < b)  goto lt;
16
 
17
#define C4(x,b) C((x)[0], b) C((x)[1],b) C((x)[2],b) C((x)[3],b)
18
#define C16(x,y) C4(x, (y)[0]) C4(x, (y)[1]) C4(x, (y)[2]) C4(x, (y)[3])
19
 
20
#define C64(x,y) C16(x,y) C16(x+4,y) C16(x+8,y) C16(x+12,y)
21
#define C256(x,y) C64(x,y) C64(x,y+4) C64(x,y+8) C64(x,y+12)
22
 
23
#define C1024(x,y) C256(x,y) C256(x+16,y) C256(x+32,y) C256(x+48,y)
24
#define C4096(x,y) C1024(x,y) C1024(x,y+16) C1024(x,y+32) C1024(x,y+48)
25
 
26
unsigned foo(int x[64], int y[64])
27
{
28
  C4096(x,y);
29
 
30
  return 0x01234567;
31
 gt:
32
  return 0x12345678;
33
 lt:
34
  return 0xF0123456;
35
}
36
 

powered by: WebSVN 2.1.0

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