blob: c6c18dcc7ac02a89a8a3960a466e6609afa4bc47 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
/* { dg-require-effective-target powerpc_elfv2 } */
/* There is no global entry point prologue with pcrel. */
/* { dg-options "-mno-pcrel" } */
/* Verify one error emitted for unexpected 4 nops before local
entry. */
extern int a;
__attribute__ ((patchable_function_entry (20, 4)))
int test (int b) {
return a + b;
}
/* { dg-error "unsupported number of nops before function entry \\(4\\)" "" { target *-*-* } .-1 } */
|