OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [binutils-2.20.1/] [gas/] [testsuite/] [gas/] [mt/] [relocs1.s] - Blame information for rev 277

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 205 julius
;; This test is meant to exercise every unusual reloc supported
2
;; by the mrisc port.  (Ok, so there's only one so far.  :P)
3
 
4
        .text
5
text:
6
        .global _start
7
_start:
8
        add R1,R1,R3
9
 
10
; Make sure local fixups work.
11
local:
12
        jmp (dummy2-dummy1)
13
 
14
; Test the PC16 reloc.
15
none:
16
         or R0,R0,R0 ;nop to conform to scheduling restrictions
17
         jmp local
18
 
19
; Test the %hi16 and %lo16 relocs
20
addui R1,R2,#%hi16(d2)
21
addui R1,R2,#%lo16(d2)
22
addui R1,R2,#%hi16(65536)
23
addui R1,R2,#%lo16(65536)
24
addui R1,R2,#%hi16($FFFFEEEE)
25
addui R1,R2,#%lo16($FFFFEEEE)
26
 
27
dummy1: addui R1, R2, #5
28
dummy2: addui R1, R2, #6
29
 
30
        .data
31
d1:     .byte $f

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.