binutils-gdb/ld/testsuite/ld-powerpc/pcrelopt.d
Alan Modra 77486630b1 R_PPC64_PCREL_OPT
The loads and stores handled in the second instruction of a sequence
marked by R_PPC64_PCREL_OPT may be a prefix instruction.  For example:
 pld ra,symbol@got@pcrel
0:
 pld rt,off(ra)
 .reloc 0b-8,R_PPC64_PCREL_OPT,(.-8)-(0b-8)
can be optimised to
 pld rt,symbol+off@pcrel
 pnop

	* elf64-ppc.c (xlate_pcrel_opt): Handle prefix loads and stores
	in second instruction.
	(ppc64_elf_relocate_section): Likewise.
2019-09-05 13:56:20 +09:30

97 lines
3.4 KiB
Makefile

.*: file format .*
Disassembly of section \.text:
0+10000200 <_start>:
.*: (06 10 00 01|01 00 10 06) plbz r3,66320
.*: (88 60 03 10|10 03 60 88)
.*: (60 00 00 00|00 00 00 60) nop
.*: (06 10 00 01|01 00 10 06) plhz r4,66308
.*: (a0 80 03 04|04 03 80 a0)
.*: (60 00 00 00|00 00 00 60) nop
.*: (60 00 00 00|00 00 00 60) nop
.*: (60 00 00 00|00 00 00 60) nop
.*: (06 10 00 01|01 00 10 06) plha r3,66288
.*: (a8 60 02 f0|f0 02 60 a8)
.*: (40 82 ff f4|f4 ff 82 40) bne .*
.*: (06 10 00 01|01 00 10 06) plwz r3,66276
.*: (80 60 02 e4|e4 02 60 80)
.*: (60 00 00 00|00 00 00 60) nop
.*: (04 10 00 01|01 00 10 04) plwa r3,66264
.*: (a4 60 02 d8|d8 02 60 a4)
.*: (60 00 00 00|00 00 00 60) nop
.*: (04 10 00 01|01 00 10 04) pld r3,66252
.*: (e4 60 02 cc|cc 02 60 e4)
.*: (60 00 00 00|00 00 00 60) nop
.*: (04 10 00 01|01 00 10 04) plq r14,66240
.*: (e1 c0 02 c0|c0 02 c0 e1)
.*: (60 00 00 00|00 00 00 60) nop
.*: (06 10 00 01|01 00 10 06) plfs f1,66228
.*: (c0 20 02 b4|b4 02 20 c0)
.*: (60 00 00 00|00 00 00 60) nop
.*: (06 10 00 01|01 00 10 06) plfd f1,66216
.*: (c8 20 02 a8|a8 02 20 c8)
.*: (60 00 00 00|00 00 00 60) nop
.*: (04 10 00 01|01 00 10 04) plxsd v30,66204
.*: (ab c0 02 9c|9c 02 c0 ab)
.*: (60 00 00 00|00 00 00 60) nop
.*: (04 10 00 01|01 00 10 04) plxssp v31,66192
.*: (af e0 02 90|90 02 e0 af)
.*: (60 00 00 00|00 00 00 60) nop
.*: (04 10 00 01|01 00 10 04) plxv vs63,66180
.*: (cf e0 02 84|84 02 e0 cf)
.*: (60 00 00 00|00 00 00 60) nop
.*: (04 10 00 01|01 00 10 04) plxv vs0,66168
.*: (c8 00 02 78|78 02 00 c8)
.*: (60 00 00 00|00 00 00 60) nop
.*: (06 10 00 01|01 00 10 06) pstb r3,66156
.*: (98 60 02 6c|6c 02 60 98)
.*: (60 00 00 00|00 00 00 60) nop
.*: (06 10 00 01|01 00 10 06) psth r3,66144
.*: (b0 60 02 60|60 02 60 b0)
.*: (60 00 00 00|00 00 00 60) nop
.*: (60 00 00 00|00 00 00 60) nop
.*: (06 10 00 01|01 00 10 06) pstw r3,66128
.*: (90 60 02 50|50 02 60 90)
.*: (60 00 00 00|00 00 00 60) nop
.*: (04 10 00 01|01 00 10 04) pstd r3,66116
.*: (f4 60 02 44|44 02 60 f4)
.*: (60 00 00 00|00 00 00 60) nop
.*: (04 10 00 01|01 00 10 04) pstq r14,66104
.*: (f1 c0 02 38|38 02 c0 f1)
.*: (60 00 00 00|00 00 00 60) nop
.*: (06 10 00 01|01 00 10 06) pstfd f1,66092
.*: (d8 20 02 2c|2c 02 20 d8)
.*: (60 00 00 00|00 00 00 60) nop
.*: (06 10 00 01|01 00 10 06) pstfs f2,66080
.*: (d0 40 02 20|20 02 40 d0)
.*: (60 00 00 00|00 00 00 60) nop
.*: (60 00 00 00|00 00 00 60) nop
.*: (04 10 00 01|01 00 10 04) pstxsd v30,66064
.*: (bb c0 02 10|10 02 c0 bb)
.*: (60 00 00 00|00 00 00 60) nop
.*: (04 10 00 01|01 00 10 04) pstxssp v31,66052
.*: (bf e0 02 04|04 02 e0 bf)
.*: (60 00 00 00|00 00 00 60) nop
.*: (04 10 00 01|01 00 10 04) pstxv vs63,66040
.*: (df e0 01 f8|f8 01 e0 df)
.*: (60 00 00 00|00 00 00 60) nop
.*: (04 10 00 01|01 00 10 04) pstxv vs0,66028
.*: (d8 00 01 ec|ec 01 00 d8)
.*: (60 00 00 00|00 00 00 60) nop
.*: (06 10 00 01|01 00 10 06) plbz r3,70676
.*: (88 60 14 14|14 14 60 88)
.*: (60 00 00 00|00 00 00 60) nop
.*: (60 00 00 00|00 00 00 60) nop
.*: (04 10 12 35|35 12 10 04) plq r4,305485896
.*: (e0 80 58 48|48 58 80 e0)
.*: (07 00 00 00|00 00 00 07) pnop
.*: (00 00 00 00|00 00 00 00)
.*: (04 10 00 01|01 00 10 04) pld r9,65976
.*: (e5 20 01 b8|b8 01 20 e5)
.*: (e8 09 00 00|00 00 09 e8) ld r0,0\(r9\)
.*: (06 10 00 01|01 00 10 06) pla r7,65972
.*: (38 e0 01 b4|b4 01 e0 38)
.*: (88 c7 00 00|00 00 c7 88) lbz r6,0\(r7\)