Add bnd-branch-1 test
[platform/upstream/binutils.git] / ld / testsuite / ld-x86-64 / bnd-branch-1.d
1 #as: --64
2 #ld: -shared -melf_x86_64
3 #objdump: -dw
4
5 .*: +file format .*
6
7
8 #...
9 Disassembly of section .text:
10
11 #...
12 [a-f0-9]+ <_start>:
13 [       ]*[a-f0-9]+:    f2 e9 [a-f0-9]+ ff ff ff        bnd jmpq [a-f0-9]+ <foo1@plt>
14 [       ]*[a-f0-9]+:    e8 [a-f0-9]+ ff ff ff           callq  [a-f0-9]+ <foo2@plt>
15 [       ]*[a-f0-9]+:    e9 [a-f0-9]+ ff ff ff           jmpq   [a-f0-9]+ <foo3@plt>
16 [       ]*[a-f0-9]+:    e8 [a-f0-9]+ ff ff ff           callq  [a-f0-9]+ <foo4@plt>
17 [       ]*[a-f0-9]+:    f2 e8 [a-f0-9]+ ff ff ff        bnd callq [a-f0-9]+ <foo3@plt>
18 [       ]*[a-f0-9]+:    e9 [a-f0-9]+ ff ff ff           jmpq   [a-f0-9]+ <foo4@plt>
19 #pass