binutils-gdb/sim/testsuite/frv/fdtoi.cgs
Mike Frysinger 1368b914e9 sim: testsuite: flatten tree
Now that all port tests live under testsuite/sim/*/, and none live
in testsuite/ directly, flatten the structure by moving all of the
dirs under testsuite/sim/ to testsuite/ directly.

We need to stop passing --tool to dejagnu so that it searches all
dirs and not just ones that start with "sim".  Since we have no
other dirs in this tree, and no plans to add any, should be fine.
2021-01-15 19:18:34 -05:00

33 lines
568 B
Plaintext

# frv testcase for fdtoi $FRj,$FRk
# mach: frv
# as(frv): -mcpu=frv
.include "testutils.inc"
start
.global fdtoi
fdtoi:
set_fr_iimmed 0,0,fr2
set_fr_iimmed 0,0,fr3
fdtoi fr2,fr2
test_fr_iimmed 0,fr2
set_fr_iimmed 0x4000,0x0000,fr2
set_fr_iimmed 0x0000,0x0000,fr3
fdtoi fr2,fr2
test_fr_iimmed 0x00000002,fr2
set_fr_iimmed 0xc1c0,0xa920,fr2
set_fr_iimmed 0x8880,0x0000,fr3
fdtoi fr2,fr2
test_fr_iimmed 0xdeadbeef,fr2
set_gr_limmed 0x4031,0x0000,gr8
set_gr_limmed 0x0000,0x0000,gr9
movgfd gr8,fr0
fdtoi fr0,fr0
test_fr_iimmed 17,fr0
pass