Commit 64bf6102 by Kai Tietz Committed by Kai Tietz

leaf-1.c: New.

2010-06-21  Kai Tietz  <kai.tietz@onevision.com>

        * gcc.target/x86_64/abi/callabi/leaf-1.c: New.
        * gcc.target/x86_64/abi/callabi/leaf-2.c: New.

From-SVN: r161063
parent 339325b3
2010-06-21 Kai Tietz <kai.tietz@onevision.com>
* gcc.target/x86_64/abi/callabi/leaf-1.c: New.
* gcc.target/x86_64/abi/callabi/leaf-2.c: New.
2010-06-20 Uros Bizjak <ubizjak@gmail.com>
PR target/44546
......
/* { dg-do compile } */
/* { dg-options "-O2 -mabi=sysv" } */
__attribute__ ((ms_abi))
int foo (void)
{
return 0;
}
/* { dg-final { scan-assembler-not "%rsp" } } */
/* { dg-do compile } */
/* { dg-options "-O2 -mabi=sysv" } */
extern int glb1, gbl2, gbl3;
__attribute__ ((ms_abi))
int foo (void)
{
int r = 1;
int i, j, k;
for (i = 0; i < glb1; i++)
{
r *= (i + 1);
for (j = gbl2; j > 0; --j)
{
for (k = 0; k < gbl3; k++)
r += (i + k * j);
}
}
return r;
}
/* { dg-final { scan-assembler-not "%rsp" } } */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment