1 /* { dg-do compile } */
2 /* { dg-options "-mdejagnu-cpu=future -O2 -mpcrel" } */
3 /* { dg-require-effective-target powerpc_elfv2 } */
4 /* { dg-require-effective-target powerpc_future_ok } */
6 /* Test that calls generated from PC-relative code are annotated with @notoc.
7 At present, -mcpu=future does not enable pc-relative mode. Enable it here
8 explicitly until it is turned on by default. */
11 extern void yy1 (int);
13 int zz0 (void) __attribute__((noinline
));
14 void zz1 (int) __attribute__((noinline
));
28 void zz1 (int a
__attribute__((__unused__
)))
39 /* { dg-final { scan-assembler {yy1@notoc} } } */
40 /* { dg-final { scan-assembler {yy0@notoc} } } */
41 /* { dg-final { scan-assembler {zz1@notoc} } } */
42 /* { dg-final { scan-assembler {zz0@notoc} } } */