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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-6.8/] [sim/] [testsuite/] [sim/] [fr30/] [cmp.cgs] - Blame information for rev 868

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

Line No. Rev Author Line
1 24 jeremybenn
# fr30 testcase for cmp $Rj,$Ri, cmp $u4,$Ri
2
# mach(): fr30
3
 
4
        .include "testutils.inc"
5
 
6
        START
7
 
8
        .text
9
        .global cmp
10
cmp:
11
        ; Test cmp $Rj,$Ri
12
        mvi_h_gr        1,r7
13
        mvi_h_gr        2,r8
14
        set_cc          0x0f            ; Set mask opposite of expected
15
        cmp             r7,r8
16
        test_cc         0 0 0 0
17
 
18
        mvi_h_gr        1,r7
19
        mvi_h_gr        0x80000000,r8
20
        set_cc          0x0d            ; Set mask opposite of expected
21
        cmp             r7,r8
22
        test_cc         0 0 1 0
23
 
24
        set_cc          0x0b            ; Set mask opposite of expected
25
        cmp             r8,r8
26
        test_cc         0 1 0 0
27
 
28
        mvi_h_gr        0,r8
29
        set_cc          0x06            ; Set mask opposite of expected
30
        cmp             r7,r8
31
        test_cc         1 0 0 1
32
 
33
        ; Test cmp $u4,$Ri
34
        mvi_h_gr        2,r8
35
        set_cc          0x0f            ; Set mask opposite of expected
36
        cmp             1,r8
37
        test_cc         0 0 0 0
38
 
39
        mvi_h_gr        0x80000000,r8
40
        set_cc          0x0d            ; Set mask opposite of expected
41
        cmp             1,r8
42
        test_cc         0 0 1 0
43
 
44
        mvi_h_gr        0,r8
45
        set_cc          0x0b            ; Set mask opposite of expected
46
        cmp             0,r8
47
        test_cc         0 1 0 0
48
 
49
        set_cc          0x06            ; Set mask opposite of expected
50
        cmp             15,r8
51
        test_cc         1 0 0 1
52
 
53
        pass

powered by: WebSVN 2.1.0

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