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/] [fr30/] [lsl2.cgs] - Blame information for rev 301

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

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

powered by: WebSVN 2.1.0

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