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 fstx.s $rm, $rn, $frf -*- Asm -*-
|
# sh testcase for fstx.s $rm, $rn, $frf -*- Asm -*-
|
# mach: all
|
# mach: all
|
# as: -isa=shmedia
|
# as: -isa=shmedia
|
# ld: -m shelf64
|
# ld: -m shelf64
|
|
|
.include "media/testutils.inc"
|
.include "media/testutils.inc"
|
|
|
start
|
start
|
.global fstxs
|
.global fstxs
|
fstxs:
|
fstxs:
|
movi 0x1020, r0
|
movi 0x1020, r0
|
shlli r0, 8, r0
|
shlli r0, 8, r0
|
ori r0, 0x30, r0
|
ori r0, 0x30, r0
|
shlli r0, 8, r0
|
shlli r0, 8, r0
|
ori r0, 0x40, r0
|
ori r0, 0x40, r0
|
shlli r0, 8, r0
|
shlli r0, 8, r0
|
ori r0, 0x50, r0
|
ori r0, 0x50, r0
|
shlli r0, 8, r0
|
shlli r0, 8, r0
|
ori r0, 0x60, r0
|
ori r0, 0x60, r0
|
shlli r0, 8, r0
|
shlli r0, 8, r0
|
ori r0, 0x70, r0
|
ori r0, 0x70, r0
|
shlli r0, 8, r0
|
shlli r0, 8, r0
|
ori r0, 0x80, r0
|
ori r0, 0x80, r0
|
fmov.ls r0, fr0
|
fmov.ls r0, fr0
|
movi 0x2800, r1
|
movi 0x2800, r1
|
movi -8, r2
|
movi -8, r2
|
fstx.s r1, r2, fr0
|
fstx.s r1, r2, fr0
|
|
|
okay:
|
okay:
|
pass
|
pass
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.