Retro68/binutils/ld/testsuite/ld-i386/branch1.d
2017-04-10 13:32:00 +02:00

18 lines
475 B
D

#as: --32 -mrelax-relocations=yes
#ld: -melf_i386
#objdump: -dw
.*: +file format .*
Disassembly of section .text:
#...
[ ]*[a-f0-9]+: 67 e8 ([0-9a-f]{2} ){4} * addr16 call +[a-f0-9]+ <foo>
[ ]*[a-f0-9]+: 67 e8 ([0-9a-f]{2} ){4} * addr16 call +[a-f0-9]+ <bar>
[ ]*[a-f0-9]+: e9 ([0-9a-f]{2} ){4} * jmp +[a-f0-9]+ <foo>
[ ]*[a-f0-9]+: 90 nop
[ ]*[a-f0-9]+: e9 ([0-9a-f]{2} ){4} * jmp +[a-f0-9]+ <bar>
[ ]*[a-f0-9]+: 90 nop
#pass