PowerPC64 tocsave testcases
[binutils-gdb.git] / ld / testsuite / ld-powerpc / tocsave2.s
1 .abiversion 2
2 .global _start
3 .type _start,@function
4 _start:
5 nop
6 .L1:
7 # Function prologue tocsave.
8 .reloc .,R_PPC64_TOCSAVE,.L1
9 nop
10
11 nop
12 # Call with tocsave on nop
13 bl foo
14 .reloc .,R_PPC64_TOCSAVE,.L1
15 nop
16
17 nop
18 # A call without tocsave (maybe in a different function, or after alloca
19 # dynamic stack allocation loses r2 save in same function).
20 bl foo
21 nop
22
23 blr
24 .size _start, .-_start