1 /* { dg-do compile { target { powerpc*-*-* } } } */
2 /* { dg-options "-O2" } */
3 /* We have to lose the default pic codegen on Darwin. */
4 /* { dg-additional-options "-mdynamic-no-pic" { target powerpc*-*-darwin* } } */
5 /* ... and account for the out-of-line GPR restore. */
6 /* { dg-final { scan-assembler-times {\mb[ \t]*restGPR} 1 { target powerpc*-*-darwin* } } } */
7 /* { dg-final { scan-assembler-not {\mb[ \t]L} { target powerpc*-*-darwin* } } } */
8 /* { dg-final { scan-assembler-not {\mb\M} { target { ! powerpc*-*-darwin* } } } } */
10 /* Check that all computed gotos in this testcase end up unfactored completely.
11 If some is not there will be a unconditional jump left; if all works fine,
27 extern void do_stuff_b(int arg
);
28 extern void do_stuff_c(int arg
);
30 extern int someglobal
;
35 static const void *dispatch_table
[] = {
42 goto *dispatch_table
[op
->opcode
];
46 goto *dispatch_table
[op
->opcode
];
50 goto *dispatch_table
[op
->opcode
];
54 goto *dispatch_table
[op
->opcode
];