Added testcase that fails when stack alignment is incorrectly capped.

From-SVN: r167709
This commit is contained in:
Ahmad Sharif 2010-12-11 01:45:10 +00:00 committed by Ahmad Sharif
parent d8f9a0d39a
commit 10ae7517ca
2 changed files with 16 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2010-12-10 Ahmad Sharif <asharif@google.com>
* gcc.target/i386/max-stack-align.c: New testcase.
2010-12-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
* gcc.dg/funcorder.c: Remove XFAIL for hppa*64*-*-*.

View file

@ -0,0 +1,12 @@
/* { dg-do compile } */
/* { dg-options "-fomit-frame-pointer" } */
void foo()
{
int a, b, c, e, f, g, h, i;
__asm__ volatile( " jb 1b \n\t"
: : "c" (a), "d" (a), "S" (a), "D" (a),
"r" (a), "a" (a) ,"r" (a), "r" (a)
: "%""rbp" );
}