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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [pr20927.c] - Blame information for rev 455

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

Line No. Rev Author Line
1 149 jeremybenn
/* This caused an ICE on s390x due to a reload inheritance bug.  */
2
 
3
/* { dg-do compile { target s390*-*-* } } */
4
/* { dg-options "-O2" } */
5
 
6
struct point { double x, y; };
7
extern void use (struct point);
8
 
9
void test (struct point *pc, struct point p1)
10
{
11
  struct point p0 = *pc;
12
 
13
  if (p0.x == p1.x && p0.y == p1.y)
14
    use (p0);
15
 
16
  asm ("" : : : "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10");
17
 
18
  p1.y -= p0.y;
19
 
20
  use (p0);
21
  use (p1);
22
}
23
 

powered by: WebSVN 2.1.0

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