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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-7.2/] [sim/] [testsuite/] [sim/] [sh64/] [media/] [gettr.cgs] - Blame information for rev 373

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

Line No. Rev Author Line
1 330 jeremybenn
# sh testcase for gettr $trb, $rd -*- Asm -*-
2
# mach: all
3
# as: -isa=shmedia
4
# ld: -m shelf64
5
 
6
        .include "media/testutils.inc"
7
 
8
        start
9
init:
10
        # tr0 is reserved.
11
        # don't use it anywhere else in this test.
12
        pta wrong, tr0
13
 
14
gettr1:
15
        # Put garbage in r1, r2.
16
        movi 20, r1
17
        movi 30, r2
18
 
19
        pta foo, tr1
20
        pta foo, tr2
21
 
22
check1:
23
        gettr tr1, r1
24
        gettr tr2, r2
25
        bne r1, r2, tr0
26
 
27
gettr2:
28
        # Put garbage in r3, r4.
29
        movi 21, r3
30
        movi 42, r4
31
 
32
check2:
33
        pta foo, tr1
34
        gettr tr1, r2
35
        ptabs r2, tr2
36
        gettr tr2, r3
37
        ptabs r3, tr3
38
        gettr tr3, r4
39
        bne r2, r4, tr0
40
 
41
okay:
42
        pass
43
 
44
wrong:
45
        fail
46
 
47
foo:
48
        nop

powered by: WebSVN 2.1.0

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