OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [binutils-2.18.50/] [gas/] [testsuite/] [gas/] [sh/] [sh64/] [shift-2.s] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 38 julius
! Check that shift expressions translate to the proper reloc for MOVI and
2
! SHORI for local and external symbols.  This is the 64-bit subset.
3
        .text
4
        .mode SHmedia
5
start:
6
        movi (localsym >> 32) & 65535,r4
7
        movi (localsym >> 48) & 65535,r4
8
 
9
        movi ((localsym + 44) >> 32) & 65535,r4
10
        movi ((localsym + 43) >> 48) & 65535,r4
11
 
12
        movi (externsym >> 32) & 65535,r4
13
        movi (externsym >> 48) & 65535,r4
14
 
15
        movi ((externsym + 41) >> 32) & 65535,r4
16
        movi ((externsym + 42) >> 48) & 65535,r4
17
 
18
        shori (localsym >> 32) & 65535,r4
19
        shori (localsym >> 48) & 65535,r4
20
 
21
        shori ((localsym + 44) >> 32) & 65535,r4
22
        shori ((localsym + 43) >> 48) & 65535,r4
23
 
24
        shori (externsym >> 32) & 65535,r4
25
        shori (externsym >> 48) & 65535,r4
26
 
27
        shori ((externsym + 41) >> 32) & 65535,r4
28
        shori ((externsym + 42) >> 48) & 65535,r4
29
 
30
        .data
31
! Just make localsym have a non-zero offset into .data.
32
        .long 0
33
localsym:
34
        .long 0

powered by: WebSVN 2.1.0

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