OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [bfin/] [longcall-1.c] - Blame information for rev 327

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 315 jeremybenn
/* { dg-do compile { target bfin-*-* } } */
2
/* { dg-options "-O2" } */
3
/* { dg-final { scan-assembler-not "call\[^\\n\]*foo" } } */
4
/* { dg-final { scan-assembler-not "jump\[^\\n\]*foo" } } */
5
/* { dg-final { scan-assembler "call\[^\\n\]*baz" } } */
6
/* { dg-final { scan-assembler "jump\[^\\n\]*baz" } } */
7
/* { dg-final { scan-assembler "call\[^\\n\]*bar" } } */
8
/* { dg-final { scan-assembler "jump\[^\\n\]*bar" } } */
9
 
10
extern void foo () __attribute__((longcall));
11
extern void bar () __attribute__((shortcall));
12
extern void baz ();
13
 
14
int t1 ()
15
{
16
    foo ();
17
    bar ();
18
    baz ();
19
    return 4;
20
}
21
 
22
void t2 ()
23
{
24
    foo ();
25
}
26
void t3 ()
27
{
28
    bar ();
29
}
30
void t4 ()
31
{
32
    baz ();
33
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.