| 1 |
/* Verify no errors for 2, 6 and 14 nops before local entry on ELFv2. */ |
| 2 |
|
| 3 |
extern int a; |
| 4 |
|
| 5 |
__attribute__ ((noipa, patchable_function_entry (2, 2))) |
| 6 |
int test1 (int b) { |
| 7 |
return a + b; |
| 8 |
} |
| 9 |
|
| 10 |
__attribute__ ((noipa, patchable_function_entry (4, 2))) |
| 11 |
int test2 (int b) { |
| 12 |
return a + b; |
| 13 |
} |
| 14 |
|
| 15 |
__attribute__ ((noipa, patchable_function_entry (6, 6))) |
| 16 |
int test3 (int b) { |
| 17 |
return a + b; |
| 18 |
} |
| 19 |
|
| 20 |
__attribute__ ((noipa, patchable_function_entry (8, 6))) |
| 21 |
int test4 (int b) { |
| 22 |
return a + b; |
| 23 |
} |
| 24 |
|
| 25 |
__attribute__ ((noipa, patchable_function_entry (16, 6))) |
| 26 |
int test5 (int b) { |
| 27 |
return a + b; |
| 28 |
} |
| 29 |
|
| 30 |
__attribute__ ((noipa, patchable_function_entry (14, 14))) |
| 31 |
int test6 (int b) { |
| 32 |
return a + b; |
| 33 |
} |
| 34 |
|
| 35 |
__attribute__ ((noipa, patchable_function_entry (28, 14))) |
| 36 |
int test7 (int b) { |
| 37 |
return a + b; |
| 38 |
} |
| 39 |
|
| 40 |
__attribute__ ((noipa, patchable_function_entry (64, 14))) |
| 41 |
int test8 (int b) { |
| 42 |
return a + b; |
| 43 |
} |