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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 24 jeremybenn
# sh testcase for cmp/hi $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, r0
13
        cmp/hi r0, r1
14
        bt wrong
15
 
16
equal:
17
        mov #1, r0
18
        rotr r0
19
        add #3, r0
20
 
21
        mov #1, r1
22
        rotr r1
23
        add #3, r1
24
 
25
        cmp/hi r0, r1
26
        bt wrong
27
 
28
gt:
29
        mov #10, r0
30
        mov #12, r1
31
        cmp/hi r0, r1
32
        bf wrong
33
 
34
lt:
35
        mov #12, r0
36
        mov #10, r1
37
        cmp/hi r0, r1
38
        bt wrong
39
 
40
gtneg:
41
        mov #1, r0
42
        rotr r0
43
        add #1, r0
44
 
45
        mov #1, r1
46
        rotr r1
47
        add #3, r1
48
 
49
        cmp/hi r0, r1
50
        bf wrong
51
 
52
ltneg:
53
        mov #1, r0
54
        rotr r0
55
        add #3, r0
56
 
57
        mov #1, r1
58
        rotr r1
59
        add #1, r1
60
 
61
        cmp/hi r0, r1
62
        bt wrong
63
 
64
okay:
65
        pass
66
 
67
wrong:
68
        fail

powered by: WebSVN 2.1.0

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