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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [s390/] [pr20927.c] - Blame information for rev 858

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

Line No. Rev Author Line
1 691 jeremybenn
/* This caused an ICE on s390x due to a reload inheritance bug.  */
2
 
3
/* { dg-do compile } */
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.