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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [guality/] [pr36728-1.c] - Blame information for rev 816

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

Line No. Rev Author Line
1 298 jeremybenn
/* PR debug/36728 */
2
/* { dg-do run } */
3
/* { dg-options "-g" } */
4
 
5
int __attribute__((noinline))
6
foo (int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7)
7
{
8
  char *x = __builtin_alloca (arg7);
9
  int __attribute__ ((aligned(32))) y;
10
 
11
  y = 2;
12
  asm volatile ("" : "=m" (y) : "m" (y));
13
  x[0] = 25;
14
  asm volatile ("" : "=m" (x[0]) : "m" (x[0]));
15
  return y;
16
}
17
 
18
/* { dg-final { gdb-test 12 "arg1" "1" } } */
19
/* { dg-final { gdb-test 12 "arg2" "2" } } */
20
/* { dg-final { gdb-test 12 "arg3" "3" } } */
21
/* { dg-final { gdb-test 12 "arg4" "4" } } */
22
/* { dg-final { gdb-test 12 "arg5" "5" } } */
23
/* { dg-final { gdb-test 12 "arg6" "6" } } */
24
/* { dg-final { gdb-test 12 "arg7" "30" } } */
25
/* { dg-final { gdb-test 12 "y" "2" } } */
26
/* { dg-final { gdb-test 14 "arg1" "1" } } */
27
/* { dg-final { gdb-test 14 "arg2" "2" } } */
28
/* { dg-final { gdb-test 14 "arg3" "3" } } */
29
/* { dg-final { gdb-test 14 "arg4" "4" } } */
30
/* { dg-final { gdb-test 14 "arg5" "5" } } */
31
/* { dg-final { gdb-test 14 "arg6" "6" } } */
32
/* { dg-final { gdb-test 14 "arg7" "30" } } */
33
/* { dg-final { gdb-test 14 "*x" "(char) 25" } } */
34
/* { dg-final { gdb-test 14 "y" "2" } } */
35
 
36
int
37
main ()
38
{
39
  int l = 0;
40
  asm volatile ("" : "=r" (l) : "0" (l));
41
  foo (l + 1, l + 2, l + 3, l + 4, l + 5, l + 6, l + 30);
42
  return 0;
43
}

powered by: WebSVN 2.1.0

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