URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 157 |
Rev 223 |
# sh testcase for fcnvsd -*- Asm -*-
|
# sh testcase for fcnvsd -*- Asm -*-
|
# mach: all
|
# mach: all
|
# as: -isa=shcompact
|
# as: -isa=shcompact
|
# ld: -m shelf32
|
# ld: -m shelf32
|
|
|
.include "compact/testutils.inc"
|
.include "compact/testutils.inc"
|
|
|
start
|
start
|
fldi1 fr0
|
fldi1 fr0
|
flds fr0, fpul
|
flds fr0, fpul
|
_setpr
|
_setpr
|
fcnvsd fpul, dr2
|
fcnvsd fpul, dr2
|
_clrpr
|
_clrpr
|
|
|
# Convert back.
|
# Convert back.
|
_setpr
|
_setpr
|
fcnvds dr2, fpul
|
fcnvds dr2, fpul
|
_clrpr
|
_clrpr
|
fsts fpul, fr1
|
fsts fpul, fr1
|
fcmp/eq fr0, fr1
|
fcmp/eq fr0, fr1
|
bf wrong
|
bf wrong
|
|
|
okay:
|
okay:
|
pass
|
pass
|
|
|
wrong:
|
wrong:
|
fail
|
fail
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.