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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gdb-7.2/] [sim/] [testsuite/] [sim/] [fr30/] [sub.cgs] - Blame information for rev 841

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 330 jeremybenn
# fr30 testcase for sub $Rj,$Ri
2
# mach(): fr30
3
 
4
        .include "testutils.inc"
5
 
6
        START
7
 
8
        .text
9
        .global sub
10
sub:
11
        ; Test sub $Rj,$Ri
12
        mvi_h_gr        1,r7
13
        mvi_h_gr        2,r8
14
        set_cc          0x0f            ; Set mask opposite of expected
15
        sub             r7,r8
16
        test_cc         0 0 0 0
17
        test_h_gr       1,r8
18
 
19
        mvi_h_gr        1,r7
20
        mvi_h_gr        0x80000000,r8
21
        set_cc          0x0d            ; Set mask opposite of expected
22
        sub             r7,r8
23
        test_cc         0 0 1 0
24
        test_h_gr       0x7fffffff,r8
25
 
26
        set_cc          0x0b            ; Set mask opposite of expected
27
        sub             r8,r8
28
        test_cc         0 1 0 0
29
        test_h_gr       0,r8
30
 
31
        set_cc          0x06            ; Set mask opposite of expected
32
        sub             r7,r8
33
        test_cc         1 0 0 1
34
        test_h_gr       0xffffffff,r8
35
 
36
        pass

powered by: WebSVN 2.1.0

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