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/] [cmpgt.cgs] - Blame information for rev 157

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 24 jeremybenn
# sh testcase for cmp/gt $rm, $rn -*- Asm -*-
2
# mach: all
3
# as: -isa=shcompact
4
# ld: -m shelf32
5
 
6
        .include "compact/testutils.inc"
7
 
8
        start
9
 
10
zero:
11
        mov #0, r0
12
        mov #0, r1
13
        cmp/gt r0, r1
14
        bt wrong
15
 
16
onezero:
17
        mov #1, r0
18
        mov #0, r1
19
        cmp/gt r0, r1
20
        bt wrong
21
 
22
zeroone:
23
        mov #0, r0
24
        mov #1, r1
25
        cmp/gt r0, r1
26
        bf wrong
27
 
28
equal:
29
        mov #192, r0
30
        mov #192, r1
31
        cmp/gt r0, r1
32
        bt wrong
33
 
34
eqlarge:
35
        mov #1, r0
36
        rotr r0
37
        add #85, r0
38
        mov #1, r1
39
        rotr r1
40
        add #85, r1
41
        cmp/gt r0, r1
42
        bt wrong
43
 
44
large2:
45
        mov #1, r0
46
        rotr r0
47
        add #85, r0
48
        mov #1, r1
49
        rotr r1
50
        add #84, r1
51
        cmp/gt r0, r1
52
        bt wrong
53
 
54
large3:
55
        mov #1, r0
56
        rotr r0
57
        add #84, r0
58
        mov #1, r1
59
        rotr r1
60
        add #85, r1
61
        cmp/gt r0, r1
62
        bf wrong
63
 
64
okay:
65
        pass
66
 
67
wrong:
68
        fail
69
 

powered by: WebSVN 2.1.0

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