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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [gdb-5.3/] [sim/] [testsuite/] [d30v-elf/] [do-2wordops.S] - Blame information for rev 1773

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

Line No. Rev Author Line
1 1181 sfurman
        # Test macro
2
 
3
        .macro assert reg,value
4
        cmpeq f0,\reg,\value
5
        bra/fx fail
6
        .endm
7
 
8
        .macro nassert reg,value
9
        cmpne f0,\reg,\value
10
        bra/fx fail
11
        .endm
12
 
13
 
14
        # PR 18452 - a.s
15
 
16
        add r1, r0, 0
17
        add r2,r0,0x11223344
18
        add r3,r0,0x8899aabb
19
        nop   ||mulx2h r0,r2,r3
20
 
21
        assert r0, 0x0
22
        assert r1, 0x0
23
 
24
        # test other double-word loads
25
 
26
        add     r2,r0,data
27
        ld2w    r0,@(r2,0)
28
        assert  r0, 0x0
29
        assert  r1, 0x0
30
 
31
        add     r2,r0,data
32
        ld2h    r0,@(r2,0)
33
        assert  r0, 0x0
34
        assert  r1, 0x0
35
 
36
        add     r2,r0,data
37
        ld4bh   r0,@(r2,0)
38
        assert  r0, 0x0
39
        assert  r1, 0x0
40
 
41
        add     r2,r0,data
42
        ld4bhu  r0,@(r2,0)
43
        assert  r0, 0x0
44
        assert  r1, 0x0
45
 
46
 
47
        # PR 18679 - a.s
48
 
49
        ld2h    r2, @(r0, b)
50
        ld2h    r4, @(r0, d)
51
        assert  r2, 0x00001111
52
        assert  r3, 0xffff8899
53
        assert  r4, 0x00001111
54
        assert  r5, 0x00002222
55
 
56
 
57
        # all okay
58
 
59
        bra     ok
60
 
61
ok:
62
        add r2, r0, 0
63
        .long 0x0e000004
64
        nop
65
 
66
fail:
67
        add r2, r0, 47
68
        .long 0x0e000004
69
        nop
70
 
71
        # some non-zero data
72
data:
73
        .long 0x12345678
74
        .long 0x9abcdef0
75
        .long 0xdeadbeef
76
 
77
b:
78
        .word 0x11118899, 0x0
79
d:
80
        .word 0x11112222, 0x0

powered by: WebSVN 2.1.0

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