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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [binutils-2.18.50/] [gas/] [testsuite/] [gas/] [arm/] [group-reloc-alu-encoding-bad.s] - Blame information for rev 832

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

Line No. Rev Author Line
1 38 julius
@ Tests that should fail for ALU group relocations.
2
 
3
        .text
4
 
5
        .macro alutest insn sym offset
6
 
7
        \insn   r0, r0, #:pc_g0:(\sym + \offset)
8
        \insn   r0, r0, #:pc_g1:(\sym + \offset)
9
        \insn   r0, r0, #:pc_g2:(\sym + \offset)
10
 
11
        \insn   r0, r0, #:pc_g0_nc:(\sym + \offset)
12
        \insn   r0, r0, #:pc_g1_nc:(\sym + \offset)
13
 
14
        \insn   r0, r0, #:sb_g0:(\sym + \offset)
15
        \insn   r0, r0, #:sb_g1:(\sym + \offset)
16
        \insn   r0, r0, #:sb_g2:(\sym + \offset)
17
 
18
        \insn   r0, r0, #:sb_g0_nc:(\sym + \offset)
19
        \insn   r0, r0, #:sb_g1_nc:(\sym + \offset)
20
 
21
        .endm
22
 
23
        alutest add f 0x11001
24
        alutest add localsym 0x11001
25
        alutest adds f 0x11001
26
        alutest adds localsym 0x11001
27
 
28
        alutest add f "-0x11001"
29
        alutest add localsym "-0x11001"
30
        alutest adds f "-0x11001"
31
        alutest adds localsym "-0x11001"
32
 
33
localsym:
34
        mov     r0, #0
35
 

powered by: WebSVN 2.1.0

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