Browse Source
* gas/testsuite/gas/sh/pcrel.s: Sources for new test. * gas/testsuite/gas/sh/basic.exp: Run it.binutils-2_12-branch
4 changed files with 44 additions and 1 deletions
@ -0,0 +1,21 @@ |
|||
#as: -big |
|||
#objdump: -d |
|||
#name: PC-relative loads |
|||
|
|||
.*: file format .*sh.* |
|||
|
|||
Disassembly of section .text: |
|||
|
|||
00000000 <code>: |
|||
0: d1 03 mov\.l 10 <litpool>,r1 ! 0xfffffff0 |
|||
2: d1 03 mov\.l 10 <litpool>,r1 ! 0xfffffff0 |
|||
4: c7 02 mova 10 <litpool>,r0 |
|||
6: 61 02 mov\.l @r0,r1 |
|||
8: d1 01 mov\.l 10 <litpool>,r1 ! 0xfffffff0 |
|||
a: 01 03 bsrf r1 |
|||
c: 00 09 nop |
|||
e: 00 09 nop |
|||
|
|||
00000010 <litpool>: |
|||
10: ff ff \.word 0xffff |
|||
12: ff f0 \.word 0xfff0 |
|||
@ -0,0 +1,14 @@ |
|||
.text |
|||
|
|||
.p2align 2 |
|||
code: |
|||
mov.l litpool, r1 |
|||
mov.l @(14,pc), r1 |
|||
mova @(litpool-.,pc), r0 |
|||
mov.l @r0,r1 |
|||
mov.l @(litpool-.,pc), r1 |
|||
bsrf r1 |
|||
nop |
|||
nop |
|||
litpool: |
|||
.long code - . |
|||
Loading…
Reference in new issue