Commit 0fb6f88a by Bernd Schmidt Committed by Bernd Schmidt

bfin-longcall-1.c: New file.

	* gcc.dg/bfin-longcall-1.c: New file.
	* gcc.dg/bfin-longcall-2.c: New file.

From-SVN: r102277
parent 32cafd73
2005-07-22 Bernd Schmidt <bernd.schmidt@analog.com>
* gcc.dg/bfin-longcall-1.c: New file.
* gcc.dg/bfin-longcall-2.c: New file.
2005-07-21 Janis Johnson <janis187@us.ibm.com>
* gcc.c-torture/compile/20050721-1.c: New test for 3.4 fix.
......
/* { dg-do compile { target bfin-*-* } } */
/* { dg-options "-O2" } */
/* { dg-final { scan-assembler-not "call\[^\\n\]*foo" } } */
/* { dg-final { scan-assembler-not "jump\[^\\n\]*foo" } } */
/* { dg-final { scan-assembler "call\[^\\n\]*baz" } } */
/* { dg-final { scan-assembler "jump\[^\\n\]*baz" } } */
/* { dg-final { scan-assembler "call\[^\\n\]*bar" } } */
/* { dg-final { scan-assembler "jump\[^\\n\]*bar" } } */
extern void foo () __attribute__((longcall));
extern void bar () __attribute__((shortcall));
extern void baz ();
int t1 ()
{
foo ();
bar ();
baz ();
return 4;
}
void t2 ()
{
foo ();
}
void t3 ()
{
bar ();
}
void t4 ()
{
baz ();
}
/* { dg-do compile { target bfin-*-* } } */
/* { dg-options "-O2 -mlong-calls" } */
/* { dg-final { scan-assembler-not "call\[^\\n\]*foo" } } */
/* { dg-final { scan-assembler-not "jump\[^\\n\]*foo" } } */
/* { dg-final { scan-assembler-not "call\[^\\n\]*baz" } } */
/* { dg-final { scan-assembler-not "jump\[^\\n\]*baz" } } */
/* { dg-final { scan-assembler "call\[^\\n\]*bar" } } */
/* { dg-final { scan-assembler "jump\[^\\n\]*bar" } } */
extern void foo () __attribute__((longcall));
extern void bar () __attribute__((shortcall));
extern void baz ();
int t1 ()
{
foo ();
bar ();
baz ();
return 4;
}
void t2 ()
{
foo ();
}
void t3 ()
{
bar ();
}
void t4 ()
{
baz ();
}
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