Add testcase for generation of 32/64_PCREL.
[binutils-gdb.git] / gas / testsuite / gas / loongarch / pcrel_relax.d
1 #as:
2 #objdump: -Dr
3
4 .*:[ ]+file format .*
5
6
7 Disassembly of section .text:
8
9 00000000.* <.L1>:
10 [ ]+...
11 [ ]+0:[ ]+R_LARCH_32_PCREL[ ]+.L3
12 [ ]+4:[ ]+R_LARCH_ADD32[ ]+.L3
13 [ ]+4:[ ]+R_LARCH_SUB32[ ]+.L1
14
15 0*00000008[ ]+<.L2>:
16 [ ]+...
17 [ ]+8:[ ]+R_LARCH_64_PCREL[ ]+.L3
18 [ ]+10:[ ]+R_LARCH_ADD64[ ]+.L3
19 [ ]+10:[ ]+R_LARCH_SUB64[ ]+.L2
20
21 Disassembly[ ]+of[ ]+section[ ]+sx:
22
23 0*00000000[ ]+<.L3>:
24 [ ]+0:[ ]+fffffff4[ ]+.word[ ]+0xfffffff4
25 [ ]+4:[ ]+fffffff4[ ]+.word[ ]+0xfffffff4
26 [ ]+8:[ ]+ffffffff[ ]+.word[ ]+0xffffffff
27
28 0*0000000c[ ]+<.L4>:
29 [ ]+...
30 [ ]+c:[ ]+R_LARCH_ADD32[ ]+.L4
31 [ ]+c:[ ]+R_LARCH_SUB32[ ]+.L5
32 [ ]+10:[ ]+R_LARCH_ADD64[ ]+.L4
33 [ ]+10:[ ]+R_LARCH_SUB64[ ]+.L5
34
35 Disassembly[ ]+of[ ]+section[ ]+sy:
36
37 0*00000000[ ]+<.L5>:
38 [ ]+...
39 [ ]+0:[ ]+R_LARCH_32_PCREL[ ]+.L1
40 [ ]+4:[ ]+R_LARCH_32_PCREL[ ]+.L3\+0x4
41 [ ]+8:[ ]+R_LARCH_64_PCREL[ ]+.L1\+0x8
42 [ ]+10:[ ]+R_LARCH_64_PCREL[ ]+.L3\+0x10
43
44 Disassembly[ ]+of[ ]+section[ ]+sz:
45
46 0*00000000[ ]+<sz>:
47 [ ]+0:[ ]+00000000[ ]+.word[ ]+0x00000000
48 [ ]+0:[ ]+R_LARCH_ADD32[ ]+.L1
49 [ ]+0:[ ]+R_LARCH_SUB32[ ]+.L2
50 [ ]+4:[ ]+fffffff4[ ]+.word[ ]+0xfffffff4
51 [ ]+...
52 [ ]+8:[ ]+R_LARCH_ADD32[ ]+.L3
53 [ ]+8:[ ]+R_LARCH_SUB32[ ]+.L5
54 [ ]+c:[ ]+R_LARCH_ADD64[ ]+.L1
55 [ ]+c:[ ]+R_LARCH_SUB64[ ]+.L2
56 [ ]+14:[ ]+fffffff4[ ]+.word[ ]+0xfffffff4
57 [ ]+18:[ ]+ffffffff[ ]+.word[ ]+0xffffffff
58 [ ]+...
59 [ ]+1c:[ ]+R_LARCH_ADD64[ ]+.L3
60 [ ]+1c:[ ]+R_LARCH_SUB64[ ]+.L5