URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [tags/] [gnu-src/] [gdb-6.8/] [pre-binutils-2.20.1-sync/] [sim/] [testsuite/] [sim/] [sh64/] [media/] [fiprs.cgs] - Rev 24
Go to most recent revision | Compare with Previous | Blame | View Log
# sh testcase for fipr.s $fvg, $fvh, $frf -*- Asm -*-
# mach: all
# as: -isa=shmedia
# ld: -m shelf64
.include "media/testutils.inc"
.macro _load val, fpreg
# This macro clobbers r0.
movi \val, r0
fmov.ls r0, \fpreg
float.ls \fpreg, \fpreg
.endm
start
.global fiprs
init:
pta wrong, tr0
_load 1, fr0
_load 2, fr1
_load 3, fr2
_load 4, fr3
_load 1, fr4
_load 2, fr5
_load 3, fr6
_load 4, fr7
fiprs:
fipr.s fv0, fv4, fr9
check:
_load 30, fr10
fcmpeq.s fr9, fr10, r7
bnei r7, 1, tr0
okay:
pass
wrong:
fail
Go to most recent revision | Compare with Previous | Blame | View Log