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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-7.1/] [sim/] [testsuite/] [sim/] [frv/] [fr400/] [addss.cgs] - Blame information for rev 834

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

Line No. Rev Author Line
1 227 jeremybenn
# frv testcase for addss $GRi,$GRj,$GRk
2
# mach: fr405 fr450
3
 
4
        .include "../testutils.inc"
5
 
6
        start
7
 
8
        .global add
9
add_nosaturate:
10
        set_gr_immed    1,gr7
11
        set_gr_immed    2,gr8
12
        addss           gr7,gr8,gr8
13
        test_gr_immed   3,gr8
14
add_saturate_pos:
15
        set_gr_limmed   0x7fff,0xffff,gr7
16
        set_gr_immed    1,gr8
17
        addss           gr7,gr8,gr8
18
        test_gr_limmed  0x7fff,0xffff,gr8
19
 
20
        set_gr_limmed   0x4000,0x0000,gr7
21
        set_gr_limmed   0x4000,0x0000,gr8
22
        addss           gr7,gr8,gr8
23
        test_gr_limmed  0x7fff,0xffff,gr8
24
 
25
add_saturate_neg:
26
        set_gr_limmed   0x8000,0x0000,gr7
27
        set_gr_limmed   0xffff,0xffff,gr8
28
        addss           gr7,gr8,gr8
29
        test_gr_limmed  0x8000,0x0000,gr8
30
 
31
        set_gr_limmed   0x8000,0x0001,gr7
32
        set_gr_limmed   0x8000,0x0001,gr8
33
        addss           gr7,gr8,gr8
34
        test_gr_limmed  0x8000,0x0000,gr8
35
 
36
        pass

powered by: WebSVN 2.1.0

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