URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 298 |
Rev 338 |
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-O1 -ftree-vrp -fdump-tree-dom2" } */
|
/* { dg-options "-O1 -ftree-vrp -fdump-tree-dom2" } */
|
|
|
extern void abort (void);
|
extern void abort (void);
|
|
|
oof ()
|
oof ()
|
{
|
{
|
int live_head;
|
int live_head;
|
int * live = &live_head;
|
int * live = &live_head;
|
|
|
if (live)
|
if (live)
|
bitmap_clear (live);
|
bitmap_clear (live);
|
}
|
}
|
|
|
foo(int n)
|
foo(int n)
|
{
|
{
|
int *space = (int *)__builtin_alloca (n);
|
int *space = (int *)__builtin_alloca (n);
|
|
|
if (space == 0)
|
if (space == 0)
|
abort ();
|
abort ();
|
else
|
else
|
bar (space);
|
bar (space);
|
}
|
}
|
|
|
|
|
/* There should be no IF conditionals. */
|
/* There should be no IF conditionals. */
|
/* { dg-final { scan-tree-dump-times "if " 0 "dom2" } } */
|
/* { dg-final { scan-tree-dump-times "if " 0 "dom2" } } */
|
/* { dg-final { cleanup-tree-dump "dom2" } } */
|
/* { dg-final { cleanup-tree-dump "dom2" } } */
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.