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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-6.8/] [sim/] [testsuite/] [sim/] [cris/] [asm/] [pcplus.ms] - Blame information for rev 840

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 24 jeremybenn
# mach: crisv0 crisv3 crisv8 crisv10
2
 
3
; Test that a forward as well as backward 32-bit "branch" expansion
4
; works including that the right offset is applied.
5
 
6
        .macro nop32
7
        .rept 32
8
        nop
9
        .endr
10
        .endm
11
 
12
        .include "testutils.inc"
13
        start
14
        jump start1
15
        fail
16
 
17
        nop32
18
        subq 63,$r10
19
9:      subq 1,$r10
20
        nop32
21
        jump 0f
22
 
23
        fail
24
0:      move [$pc=$pc+1f-6-0b],$p0
25
        nop32
26
        fail
27
 
28
        .skip 32768,0
29
 
30
        nop32
31
        subq 63,$r10
32
1:
33
        subq 1,$r10
34
        nop32
35
        test.d $r10
36
        bne 7f
37
        nop
38
        pass
39
7:
40
        fail
41
 
42
start1:
43
        moveq 2,$r10
44
0:      move [$pc=$pc+9b-6-0b],$p0
45
        subq 63,$r10
46
        fail

powered by: WebSVN 2.1.0

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