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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 24 jeremybenn
# fr30 testcase for lsr2 $u4,$Rj
2
# mach(): fr30
3
 
4
        .include "testutils.inc"
5
 
6
        START
7
 
8
        .text
9
        .global lsr2
10
lsr2:
11
        ; Test lsr2 $u4Ri
12
        mvi_h_gr        0x80000000,r8
13
        set_cc          0x0d            ; Set mask opposite of expected
14
        lsr2            0,r8
15
        test_cc         0 0 0 0
16
        test_h_gr       0x00008000,r8
17
 
18
        mvi_h_gr        0x80000000,r8
19
        set_cc          0x0f            ; Set mask opposite of expected
20
        lsr2            1,r8
21
        test_cc         0 0 1 0
22
        test_h_gr       0x00004000,r8
23
 
24
        mvi_h_gr        0x80000000,r8
25
        set_cc          0x0e            ; Set mask opposite of expected
26
        lsr2            15,r8
27
        test_cc         0 0 1 0
28
        test_h_gr       1,r8
29
 
30
        mvi_h_gr        0x40000000,r8
31
        set_cc          0x0a            ; Set mask opposite of expected
32
        lsr2            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.