x86: Properly handle PLT expression in directive
[external/binutils.git] / ld / testsuite / ld-cris / dso-pltdis2.d
1 #source: dsov32-1.s
2 #source: dsov32-2.s
3 #source: dsofng.s
4 #as: --pic --no-underscore --march=v32 --em=criself
5 #ld: --shared -m crislinux --hash-style=sysv
6 #objdump: -d 
7
8 # Complement to dso-pltdis1.d; merging the other .got.plt entry.
9 # Depending on reloc order, one of the tests would fail.
10
11 .*:     file format elf32-cris
12
13 Disassembly of section \.plt:
14
15 0+160 <.*>:
16
17  160:   84e2                    subq 4,\$sp
18  162:   0401                    addoq 4,\$r0,\$acr
19  164:   7e7a                    move \$mof,\[\$sp\]
20  166:   3f7a                    move \[\$acr\],\$mof
21  168:   04f2                    addq 4,\$acr
22  16a:   6ffa                    move\.d \[\$acr\],\$acr
23  16c:   bf09                    jump \$acr
24  16e:   b005                    nop 
25         \.\.\.
26
27 0000017a <dsofn4@plt>:
28  17a:   6f0d ..00 0000          addo\.d .*
29  180:   6ffa                    move\.d \[\$acr\],\$acr
30  182:   bf09                    jump \$acr
31  184:   b005                    nop 
32  186:   3f7e .... ....          move .*,\$mof
33  18c:   bf0e .... ....          ba .*
34  192:   b005                    nop 
35 #...
36  194:   6f0d ..00 0000          addo\.d .*
37  19a:   6ffa                    move\.d \[\$acr\],\$acr
38  19c:   bf09                    jump \$acr
39  19e:   b005                    nop 
40  1a0:   3f7e .... ....          move .*,\$mof
41  1a6:   bf0e .... ....          ba .*
42  1ac:   b005                    nop 
43
44 Disassembly of section \.text:
45 #...
46 0+1ae <dsofn3>:
47  1ae:   bfbe e6ff ffff          bsr 194 <.*>
48  1b4:   b005                    nop 
49
50 0+1b6 <dsofn4>:
51  1b6:   7f0d ae20 0000          lapc 2264 <_GLOBAL_OFFSET_TABLE_>,\$r0
52  1bc:   5f0d ..00               addo\.w 0x..,\$r0,\$acr
53  1c0:   bfbe baff ffff          bsr 17a <dsofn4@plt>
54 #pass