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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-7.1/] [sim/] [testsuite/] [sim/] [fr30/] [extsb.cgs] - Blame information for rev 856

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

Line No. Rev Author Line
1 227 jeremybenn
# fr30 testcase for extsb $Ri
2
# mach(): fr30
3
 
4
        .include "testutils.inc"
5
 
6
        START
7
 
8
        .text
9
        .global extsb
10
extsb:
11
        ; Test extsb $Ri
12
        mvi_h_gr        0,r7
13
        set_cc          0x0f            ; Condition codes are irrelevent
14
        extsb           r7
15
        test_cc         1 1 1 1
16
        test_h_gr       0,r7
17
 
18
        mvi_h_gr        0x7f,r7
19
        set_cc          0x0e            ; Condition codes are irrelevent
20
        extsb           r7
21
        test_cc         1 1 1 0
22
        test_h_gr       0x7f,r7
23
 
24
        mvi_h_gr        0x80,r7
25
        set_cc          0x0d            ; Condition codes are irrelevent
26
        extsb           r7
27
        test_cc         1 1 0 1
28
        test_h_gr       0xffffff80,r7
29
 
30
        mvi_h_gr        0xffffff7f,r7
31
        set_cc          0x0c            ; Condition codes are irrelevent
32
        extsb           r7
33
        test_cc         1 1 0 0
34
        test_h_gr       0x7f,r7
35
 
36
        pass

powered by: WebSVN 2.1.0

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