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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [guality/] [pr43479.c] - Rev 801

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

/* PR debug/43479 */
/* { dg-do run } */
/* { dg-options "-g" } */
 
__attribute__((noinline)) void
foo (int k, int l, int m, int n)
{
  l++;
  {
    int h = n;
    {
      int i = k;
      k++;	/* { dg-final { gdb-test 13 "i" "6" } } */
    }		/* { dg-final { gdb-test 13 "h" "9" } } */
		/* { dg-final { gdb-test 13 "n" "9" } } */
    {
      int j = m;
      m++;	/* { dg-final { gdb-test 18 "j" "8" } } */
    }		/* { dg-final { gdb-test 18 "h" "9" } } */
		/* { dg-final { gdb-test 12 "n" "9" } } */
  }
  asm volatile ("" : : "r" (k), "r" (l));
  asm volatile ("" : : "r" (m), "r" (n));
}
 
int
main (void)
{
  int q = 6;
  asm ("" : "+r" (q));
  foo (q, q + 1, q + 2, q + 3);
  return 0;
}
 

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

powered by: WebSVN 2.1.0

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