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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [gdb-5.3/] [sim/] [testsuite/] [sim/] [fr30/] [lsl.cgs] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1181 sfurman
# fr30 testcase for lsl $Rj,$Ri, lsl $u4,$Rj
2
# mach(): fr30
3
 
4
        .include "testutils.inc"
5
 
6
        START
7
 
8
        .text
9
        .global lsl
10
lsl:
11
        ; Test lsl $Rj,$Ri
12
        mvi_h_gr        0xdeadbee0,r7   ; Shift by 0
13
        mvi_h_gr        2,r8
14
        set_cc          0x0d            ; Set mask opposite of expected
15
        lsl             r7,r8
16
        test_cc         0 0 0 0
17
        test_h_gr       2,r8
18
 
19
        mvi_h_gr        0xdeadbee1,r7   ; Shift by 1
20
        mvi_h_gr        2,r8
21
        set_cc          0x0f            ; Set mask opposite of expected
22
        lsl             r7,r8
23
        test_cc         0 0 1 0
24
        test_h_gr       4,r8
25
 
26
        mvi_h_gr        0xdeadbeff,r7   ; Shift by 31
27
        mvi_h_gr        1,r8
28
        set_cc          0x07            ; Set mask opposite of expected
29
        lsl             r7,r8
30
        test_cc         1 0 1 0
31
        test_h_gr       0x80000000,r8
32
 
33
        mvi_h_gr        0xdeadbeff,r7   ; clear register
34
        mvi_h_gr        2,r8
35
        set_cc          0x0a            ; Set mask opposite of expected
36
        lsl             r7,r8
37
        test_cc         0 1 1 1
38
        test_h_gr       0x00000000,r8
39
 
40
        ; Test lsl $u4Ri
41
        mvi_h_gr        2,r8
42
        set_cc          0x0d            ; Set mask opposite of expected
43
        lsl             0,r8
44
        test_cc         0 0 0 0
45
        test_h_gr       2,r8
46
 
47
        mvi_h_gr        2,r8
48
        set_cc          0x0f            ; Set mask opposite of expected
49
        lsl             1,r8
50
        test_cc         0 0 1 0
51
        test_h_gr       4,r8
52
 
53
        mvi_h_gr        1,r8
54
        set_cc          0x0e            ; Set mask opposite of expected
55
        lsl             15,r8
56
        test_cc         0 0 1 0
57
        test_h_gr       0x00008000,r8
58
 
59
        mvi_h_gr        0x00020000,r8
60
        set_cc          0x0a            ; Set mask opposite of expected
61
        lsl             15,r8
62
        test_cc         0 1 1 1
63
        test_h_gr       0x00000000,r8
64
 
65
        pass

powered by: WebSVN 2.1.0

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