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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.target/] [i386/] [20000720-1.c] - Blame information for rev 825

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

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
2
/* { dg-require-effective-target ilp32 } */
3
/* { dg-options "-mpreferred-stack-boundary=2 -march=i586 -O2 -fomit-frame-pointer" } */
4
 
5
extern void *foo(void *a, const void *b, unsigned c);
6
 
7
extern inline void *
8
bar(void *a, const void *b, unsigned c)
9
{
10
  int d0, d1, d2;
11
  __asm__ __volatile__(
12
    "" :
13
    "=&c" (d0), "=&D" (d1), "=&S" (d2) :
14
    "0" (c/4), "q" (c), "1" (a), "2" (b) :
15
    "memory");
16
  return a;
17
}
18
 
19
typedef struct {
20
  unsigned char a;
21
  unsigned b : 2;
22
  unsigned c : 4;
23
  unsigned d : 2;
24
} *baz;
25
 
26
static int
27
dead(unsigned short *v, char *w, unsigned char *x, int y, int z)
28
{
29
  int i = 0;
30
  unsigned short j = *v;
31
 
32
  while (y > 0) {
33
    ((baz)x)->a = j;
34
    ((baz)x)->b = 0;
35
    ((baz)x)->c = 0;
36
    ((baz)x)->d = 0;
37
    __builtin_constant_p(i) ? foo(x, w, i) : bar(x, w, i);
38
  }
39
  return z - y;
40
}

powered by: WebSVN 2.1.0

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