summaryrefslogtreecommitdiffstats
path: root/gas/testsuite/gas/mips/micromips@branch-misc-4.d
blob: ecf5b989ac537a14b1f1cc84d00380f57fcca59e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#objdump: -dr --prefix-addresses --show-raw-insn
#name: MIPS branch-misc-4
#as: -32
#source: branch-misc-4.s

# Verify PC-relative relocations do not overflow (microMIPS).

.*: +file format .*mips.*

Disassembly of section \.text:
	\.\.\.
([0-9a-f]+) <[^>]*> 9400 fffe 	b	\1 <foo>
[ 	]*[0-9a-f]+: R_MICROMIPS_PC16_S1	bar
[0-9a-f]+ <[^>]*> 0c00      	nop
([0-9a-f]+) <[^>]*> 9400 fffe 	b	\1 <\.Lfoo>
[ 	]*[0-9a-f]+: R_MICROMIPS_PC16_S1	\.Lbar
[0-9a-f]+ <[^>]*> 0c00      	nop
	\.\.\.

Disassembly of section \.init:
([0-9a-f]+) <[^>]*> 9400 fffe 	b	\1 <bar>
[ 	]*[0-9a-f]+: R_MICROMIPS_PC16_S1	foo
[0-9a-f]+ <[^>]*> 0c00      	nop
([0-9a-f]+) <[^>]*> 9400 fffe 	b	\1 <\.Lbar>
[ 	]*[0-9a-f]+: R_MICROMIPS_PC16_S1	\.Lfoo
[0-9a-f]+ <[^>]*> 0c00      	nop
	\.\.\.
OpenPOWER on IntegriCloud