superblock.c: New test.

2012-04-14  Tom de Vries  <tom@codesourcery.com>

	* gcc.dg/superblock.c: New test.

From-SVN: r186452
This commit is contained in:
Tom de Vries 2012-04-14 12:17:50 +00:00 committed by Tom de Vries
parent 03fbe718cb
commit 01e3d28cd5
2 changed files with 27 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2012-04-14 Tom de Vries <tom@codesourcery.com>
* gcc.dg/superblock.c: New test.
2012-04-14 Tom de Vries <tom@codesourcery.com>
* gcc.dg/pr51879-12.c: New test.

View File

@ -0,0 +1,23 @@
/* { dg-do compile } */
/* { dg-options "-O2 -fno-asynchronous-unwind-tables -fsched2-use-superblocks -fdump-rtl-sched2 -fdump-rtl-bbro" } */
typedef int aligned __attribute__ ((aligned (64)));
extern void abort (void);
int bar (void *p);
void
foo (void)
{
char *p = __builtin_alloca (13);
aligned i;
if (bar (p) || bar (&i))
abort ();
}
/* { dg-final { scan-rtl-dump-times "0 uses" 0 "bbro"} } */
/* { dg-final { scan-rtl-dump-times "ADVANCING TO" 2 "sched2"} } */
/* { dg-final { cleanup-rtl-dump "bbro" } } */
/* { dg-final { cleanup-rtl-dump "sched2" } } */