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/] [frv/] [nfdsqrts.cgs] - Rev 450

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

# frv testcase for nfdsqrts $FRj,$FRk
# mach: frv

        .include "testutils.inc"

        float_constants
        start
        load_float_constants

        .global nfdsqrts
nfdsqrts:
        set_fr_iimmed   0x4049,0x0fdb,fr45      ; 3.141592654
        nfdsqrts                fr44,fr2                ; 9.0
        test_fr_fr      fr2,fr36                ; 3.0
        test_fr_iimmed  0x3fe2dfc5,fr3          ; 1.7724539
        test_spr_immed  0,fner1
        test_spr_immed  0,fner0

        ; TODO test cases to set ne flags

        pass

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

powered by: WebSVN 2.1.0

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