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 fcmpge.d $drg, $drh, $rd -*- Asm -*-
|
# sh testcase for fcmpge.d $drg, $drh, $rd -*- 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
|
|
|
init:
|
init:
|
pta wrong, tr0
|
pta wrong, tr0
|
|
|
fcmpge1: # 2 = 2.
|
fcmpge1: # 2 = 2.
|
movi 2, r0
|
movi 2, r0
|
fmov.ls r0, fr0
|
fmov.ls r0, fr0
|
fmov.ls r0, fr1
|
fmov.ls r0, fr1
|
float.ld fr0, dr2
|
float.ld fr0, dr2
|
float.ld fr1, dr4
|
float.ld fr1, dr4
|
fcmpge.d dr2, dr4, r7
|
fcmpge.d dr2, dr4, r7
|
bnei r7, 1, tr0
|
bnei r7, 1, tr0
|
|
|
fcmpge2: # 4 > 2.
|
fcmpge2: # 4 > 2.
|
movi 4, r0
|
movi 4, r0
|
fmov.ls r0, fr0
|
fmov.ls r0, fr0
|
movi 2, r0
|
movi 2, r0
|
fmov.ls r0, fr1
|
fmov.ls r0, fr1
|
float.ld fr0, dr2
|
float.ld fr0, dr2
|
float.ld fr1, dr4
|
float.ld fr1, dr4
|
fcmpge.d dr2, dr4, r7
|
fcmpge.d dr2, dr4, r7
|
bnei r7, 1, tr0
|
bnei r7, 1, tr0
|
|
|
fcmpge3: # 2 < 4.
|
fcmpge3: # 2 < 4.
|
movi 2, r0
|
movi 2, r0
|
fmov.ls r0, fr0
|
fmov.ls r0, fr0
|
movi 4, r0
|
movi 4, r0
|
fmov.ls r0, fr1
|
fmov.ls r0, fr1
|
float.ld fr0, dr2
|
float.ld fr0, dr2
|
float.ld fr1, dr4
|
float.ld fr1, dr4
|
fcmpge.d dr2, dr4, r7
|
fcmpge.d dr2, dr4, r7
|
bnei r7, 0, tr0
|
bnei r7, 0, tr0
|
|
|
okay:
|
okay:
|
pass
|
pass
|
|
|
wrong:
|
wrong:
|
fail
|
fail
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.