Add testcase for generation of 32/64_PCREL.
[binutils-gdb.git] / gas / testsuite / gas / loongarch / pcrel_norelax.d
1 #as: -mno-relax
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_32_PCREL[ ]+.L3\+0x4
13
14 0*00000008[ ]+<.L2>:
15 [ ]+...
16 [ ]+8:[ ]+R_LARCH_64_PCREL[ ]+.L3
17 [ ]+10:[ ]+R_LARCH_64_PCREL[ ]+.L3\+0x8
18
19 Disassembly[ ]+of[ ]+section[ ]+sx:
20
21 0*00000000[ ]+<.L3>:
22 [ ]+0:[ ]+fffffff4[ ]+.word[ ]+0xfffffff4
23 [ ]+4:[ ]+fffffff4[ ]+.word[ ]+0xfffffff4
24 [ ]+8:[ ]+ffffffff[ ]+.word[ ]+0xffffffff
25
26 0*0000000c[ ]+<.L4>:
27 [ ]+...
28 [ ]+c:[ ]+R_LARCH_ADD32[ ]+.L4
29 [ ]+c:[ ]+R_LARCH_SUB32[ ]+.L5
30 [ ]+10:[ ]+R_LARCH_ADD64[ ]+.L4
31 [ ]+10:[ ]+R_LARCH_SUB64[ ]+.L5
32
33 Disassembly[ ]+of[ ]+section[ ]+sy:
34
35 0*00000000[ ]+<.L5>:
36 [ ]+...
37 [ ]+0:[ ]+R_LARCH_32_PCREL[ ]+.L1
38 [ ]+4:[ ]+R_LARCH_32_PCREL[ ]+.L2\+0x4
39 [ ]+8:[ ]+R_LARCH_64_PCREL[ ]+.L1\+0x8
40 [ ]+10:[ ]+R_LARCH_64_PCREL[ ]+.L2\+0x10
41
42 Disassembly[ ]+of[ ]+section[ ]+sz:
43
44 0*00000000[ ]+<sz>:
45 [ ]+0:[ ]+fffffff8[ ]+.word[ ]+0xfffffff8
46 [ ]+4:[ ]+fffffff4[ ]+.word[ ]+0xfffffff4
47 [ ]+8:[ ]+00000000[ ]+.word[ ]+0x00000000
48 [ ]+8:[ ]+R_LARCH_ADD32[ ]+.L2
49 [ ]+8:[ ]+R_LARCH_SUB32[ ]+.L3
50 [ ]+c:[ ]+fffffff8[ ]+.word[ ]+0xfffffff8
51 [ ]+10:[ ]+ffffffff[ ]+.word[ ]+0xffffffff
52 [ ]+14:[ ]+fffffff4[ ]+.word[ ]+0xfffffff4
53 [ ]+18:[ ]+ffffffff[ ]+.word[ ]+0xffffffff
54 [ ]+...
55 [ ]+1c:[ ]+R_LARCH_ADD64[ ]+.L2
56 [ ]+1c:[ ]+R_LARCH_SUB64[ ]+.L3