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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-7.2/] [sim/] [testsuite/] [sim/] [frv/] [fdtoi.cgs] - Blame information for rev 373

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

Line No. Rev Author Line
1 330 jeremybenn
# frv testcase for fdtoi $FRj,$FRk
2
# mach: frv
3
# as(frv): -mcpu=frv
4
 
5
        .include "testutils.inc"
6
 
7
        start
8
 
9
        .global fdtoi
10
fdtoi:
11
        set_fr_iimmed   0,0,fr2
12
        set_fr_iimmed   0,0,fr3
13
        fdtoi           fr2,fr2
14
        test_fr_iimmed  0,fr2
15
 
16
        set_fr_iimmed   0x4000,0x0000,fr2
17
        set_fr_iimmed   0x0000,0x0000,fr3
18
        fdtoi           fr2,fr2
19
        test_fr_iimmed  0x00000002,fr2
20
 
21
        set_fr_iimmed   0xc1c0,0xa920,fr2
22
        set_fr_iimmed   0x8880,0x0000,fr3
23
        fdtoi           fr2,fr2
24
        test_fr_iimmed  0xdeadbeef,fr2
25
 
26
        set_gr_limmed   0x4031,0x0000,gr8
27
        set_gr_limmed   0x0000,0x0000,gr9
28
        movgfd          gr8,fr0
29
        fdtoi           fr0,fr0
30
        test_fr_iimmed  17,fr0
31
 
32
        pass

powered by: WebSVN 2.1.0

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