| 1 |
/* Testcase to check generation of a SH2A specific, |
| 2 |
TBR relative jump instruction - 'JSR @@(disp8,TBR)'. */ |
| 3 |
/* { dg-do compile { target { sh2a } } } */ |
| 4 |
/* { dg-options "" } */ |
| 5 |
/* { dg-final { scan-assembler-times "jsr/n\\t@@\\(40,tbr\\)" 1} } */ |
| 6 |
/* { dg-final { scan-assembler-times "jsr/n\\t@@\\(72,tbr\\)" 1} } */ |
| 7 |
|
| 8 |
extern void foo1 (void) __attribute__ ((function_vector(10))); |
| 9 |
extern void foo2 (void); |
| 10 |
extern int bar1 (void) __attribute__ ((function_vector(18))); |
| 11 |
extern int bar2 (void); |
| 12 |
|
| 13 |
int |
| 14 |
bar() |
| 15 |
{ |
| 16 |
foo1(); |
| 17 |
foo2(); |
| 18 |
|
| 19 |
bar1(); |
| 20 |
bar2(); |
| 21 |
} |