testsuite: Skip analyzer tests on AIX.
[official-gcc.git] / gcc / testsuite / c-c++-common / patchable_function_entry-decl.c
blob513702822dad2ce107b3ecc21e7d8eea778633fa
1 /* { dg-do compile { target { ! { nvptx*-*-* visium-*-* } } } } */
2 /* { dg-options "-O2 -fpatchable-function-entry=3,1" } */
3 /* { dg-additional-options "-fno-pie" { target sparc*-*-* } } */
4 /* { dg-final { scan-assembler-times "nop|NOP|SWYM" 2 { target { ! { alpha*-*-* riscv*-*-* } } } } } */
5 /* { dg-final { scan-assembler-times "bis" 2 { target alpha*-*-* } } } */
6 /* { dg-final { scan-assembler-times "nop\n" 2 { target riscv*-*-* } } } */
8 extern int a;
10 /* Respect overriding attributes in the declaration. */
11 int f3 (void) __attribute__((patchable_function_entry(2)));
13 /* F3 should now get 2 NOPs. */
14 int
15 __attribute__((noinline))
16 f3 (void)
18 return 5*a;