OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-6.8/] [sim/] [testsuite/] [sim/] [frv/] [ldhfu.cgs] - Blame information for rev 24

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

Line No. Rev Author Line
1 24 jeremybenn
# frv testcase for ldhfu @($GRi,$GRj),$GRk
2
# mach: all
3
 
4
        .include "testutils.inc"
5
 
6
        start
7
 
8
        .global ldhfu
9
ldhfu:
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
        ldhfu           @(sp,gr7),fr8
16
        test_fr_limmed  0x0000,0xdead,fr8
17
        test_gr_gr      sp,gr20
18
 
19
        inc_gr_immed    2,gr20
20
        set_gr_immed    2,gr7
21
        ldhfu           @(sp,gr7),fr8
22
        test_fr_limmed  0x0000,0xbeef,fr8
23
        test_gr_gr      sp,gr20
24
 
25
        inc_gr_immed    -2,sp
26
        set_mem_limmed  0xffff,0x0000,sp
27
        inc_gr_immed    4,sp
28
        set_gr_immed    -2,gr7
29
        ldhfu           @(sp,gr7),fr8
30
        test_fr_limmed  0x0000,0x0000,fr8
31
        test_gr_gr      sp,gr20
32
 
33
        pass

powered by: WebSVN 2.1.0

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