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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-6.8/] [sim/] [testsuite/] [sim/] [sh64/] [compact/] [tst.cgs] - Blame information for rev 157

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 24 jeremybenn
# sh testcase for tst $rm, $rn
2
# mach: all
3
# as: -isa=shcompact
4
# ld: -m shelf32
5
 
6
        .include "compact/testutils.inc"
7
 
8
        start
9
 
10
        .global tst1
11
tst1:
12
        mov #0, r0
13
        mov #0, r1
14
        tst r0, r0
15
        bf wrong
16
 
17
test2:
18
        mov #0, r0
19
        mov #1, r1
20
        tst r0, r1
21
        bf wrong
22
 
23
test3:
24
        mov #0, r0
25
        mov #1, r1
26
        tst r1, r0
27
        bf wrong
28
 
29
test4:
30
        mov #1, r0
31
        mov #1, r1
32
        tst r0, r1
33
        bt wrong
34
 
35
test5:
36
        mov #1, r0
37
        rotr r0
38
        add #85, r0
39
        shll16 r0
40
        add #12, r0
41
        mov #1, r1
42
        rotr r1
43
        add #85, r1
44
        shll16 r1
45
        add #12, r1
46
        tst r0, r1
47
        bt wrong
48
 
49
test6:
50
        mov #1, r0
51
        rotr r0
52
        add #85, r0
53
        shll16 r0
54
        add #12, r0
55
        mov #1, r1
56
        tst r0, r1
57
        bf wrong
58
 
59
okay:
60
        pass
61
wrong:
62
        fail

powered by: WebSVN 2.1.0

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