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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-7.1/] [sim/] [testsuite/] [sim/] [frv/] [ldbfu.cgs] - Blame information for rev 842

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 227 jeremybenn
# frv testcase for ldbfu @($GRi,$GRj),$GRk
2
# mach: all
3
 
4
        .include "testutils.inc"
5
 
6
        start
7
 
8
        .global ldbfu
9
ldbfu:
10
        set_gr_gr       sp,gr20
11
        set_mem_limmed  0xdead,0xbeef,sp
12
        set_fr_iimmed   0xbeef,0xdead,fr8
13
 
14
        set_gr_immed    0,gr7
15
        ldbfu           @(sp,gr7),fr8
16
        test_fr_limmed  0x0000,0x00de,fr8
17
        test_gr_gr      sp,gr20
18
 
19
        inc_gr_immed    1,gr20
20
        set_gr_immed    1,gr7
21
        ldbfu           @(sp,gr7),fr8
22
        test_fr_limmed  0x0000,0x00ad,fr8
23
        test_gr_gr      sp,gr20
24
 
25
        inc_gr_immed    2,gr20
26
        inc_gr_immed    -1,sp
27
        set_mem_limmed  0xffff,0xff00,sp
28
        inc_gr_immed    4,sp
29
        set_gr_immed    -1,gr7
30
        ldbfu           @(sp,gr7),fr8
31
        test_fr_limmed  0x0000,0x0000,fr8
32
        test_gr_gr      sp,gr20
33
 
34
        pass

powered by: WebSVN 2.1.0

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