summaryrefslogtreecommitdiff
path: root/gas/testsuite/gas/sh/pcrel2.d
blob: 21df0aa7d2f21a3b5f1aff9667974cffffb8de89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#as: -big
#objdump: -drj.text
#name: PC-relative loads

.*:     file format .*sh.*

Disassembly of section \.text:

00000000 <code>:
   0:	8b 01       	bf	6 <foo>
   2:	d0 02       	mov\.l	c <bar>,r0	! 0x6 .*
   4:	90 02       	mov\.w	c <bar>,r0	! 0x0 .*

00000006 <foo>:
   6:	af fe       	bra	6 <foo>
   8:	00 09       	nop	
   a:	00 09       	nop	

0000000c <bar>:
   c:	00 00       	.*[ 	]*.*
   e:	00 06       	.*[ 	]*.*
  10:	00 0a       	.*[ 	]*.*
  12:	0c 00       	.*[ 	]*.*