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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-7.1/] [sim/] [testsuite/] [sim/] [fr30/] [ldi8.cgs] - Blame information for rev 355

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

Line No. Rev Author Line
1 227 jeremybenn
# fr30 testcase for ldi8 $i8,$Ri
2
# mach(): fr30
3
 
4
        .include "testutils.inc"
5
 
6
        START
7
 
8
        .text
9
        .global ldi8
10
ldi8:
11
        ; Test ldi8 $i8,$Ri
12
        set_cc          0x0f            ; condition codes should not change
13
        ldi8            #0x00000000,r7
14
        test_cc         1 1 1 1
15
        test_h_gr       0,r7
16
 
17
        set_cc          0x07            ; condition codes should not change
18
        ldi:20          1,r7
19
        test_cc         0 1 1 1
20
        test_h_gr       1,r7
21
 
22
        set_cc          0x0b            ; condition codes should not change
23
        ldi8            0x7f,r7
24
        test_cc         1 0 1 1
25
        test_h_gr       0x0000007f,r7
26
 
27
        set_cc          0x0d            ; condition codes should not change
28
        ldi:20          0x80,r7
29
        test_cc         1 1 0 1
30
        test_h_gr       0x00000080,r7
31
 
32
        set_cc          0x0e            ; condition codes should not change
33
        ldi8            0xff,r7
34
        test_cc         1 1 1 0
35
        test_h_gr       0x000000ff,r7
36
 
37
        pass

powered by: WebSVN 2.1.0

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