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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-6.8/] [sim/] [testsuite/] [sim/] [fr30/] [div4s.cgs] - Blame information for rev 301

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

Line No. Rev Author Line
1 24 jeremybenn
# fr30 testcase for div4s
2
# mach(): fr30
3
 
4
        .include "testutils.inc"
5
 
6
        START
7
 
8
        .text
9
        .global div4s
10
div4s:
11
        ; Test div4s
12
        ; example from the manual
13
        mvi_h_gr        0x00ffffff,r2
14
        mvi_h_dr        0x00000000,mdh
15
        mvi_h_dr        0x0000000f,mdl
16
        set_dbits       0x3
17
        set_cc          0x0f
18
        div4s
19
        test_cc         1 1 1 1
20
        test_dbits      0x3
21
        test_h_gr       0x00ffffff,r2
22
        test_h_dr       0x00000000,mdh
23
        test_h_dr       0xfffffff1,mdl
24
 
25
        set_dbits       0x0
26
        set_cc          0x00
27
        div4s
28
        test_cc         0 0 0 0
29
        test_dbits      0x0
30
        test_h_gr       0x00ffffff,r2
31
        test_h_dr       0x00000000,mdh
32
        test_h_dr       0xfffffff1,mdl
33
 
34
        pass

powered by: WebSVN 2.1.0

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