Added testcase that fails when stack alignment is incorrectly capped.
From-SVN: r167709
This commit is contained in:
parent
d8f9a0d39a
commit
10ae7517ca
2 changed files with 16 additions and 0 deletions
|
@ -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*-*-*.
|
||||
|
|
12
gcc/testsuite/gcc.target/i386/max-stack-align.c
Normal file
12
gcc/testsuite/gcc.target/i386/max-stack-align.c
Normal 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" );
|
||||
}
|
||||
|
Loading…
Add table
Reference in a new issue