Search
lxdream.org :: lxdream/test/sh4/ftrc.s :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename test/sh4/ftrc.s
changeset 393:5e5335b61373
prev358:65043a8f5785
next741:0c6f6567280c
author nkeynes
date Wed Sep 19 09:13:08 2007 +0000 (14 years ago)
permissions -rw-r--r--
last change Add tests for SUB, SUBC and XTRCT
Add rounding tests for FTRC
file annotate diff log raw
1.1 --- a/test/sh4/ftrc.s Thu Aug 23 12:31:31 2007 +0000
1.2 +++ b/test/sh4/ftrc.s Wed Sep 19 09:13:08 2007 +0000
1.3 @@ -274,10 +274,10 @@
1.4 sts fpul, r1
1.5 mov.l test_ftrc_11_result, r2
1.6 cmp/eq r1, r2
1.7 - bt test_ftrc_end
1.8 + bt test_ftrc_12
1.9 test_ftrc_11_fail:
1.10 fail test_ftrc_str_k
1.11 - bra test_ftrc_end
1.12 + bra test_ftrc_12
1.13 nop
1.14 test_ftrc_11_input_a:
1.15 .long 0x40FFFF11
1.16 @@ -288,7 +288,40 @@
1.17 test_ftrc_11_result:
1.18 .long 0x00000000
1.19
1.20 +test_ftrc_12: ! single precision numeric tests (rounding)
1.21 + mov.l r11, @-r15
1.22 + mov.l r10, @-r15
1.23 + mova test_ftrc_12_data, r0
1.24 + mov r0, r10
1.25 + mov #4, r11
1.26 + clrpr
1.27 +test_ftrc_12_loop:
1.28 + add #1, r12
1.29 + fmov @r10+, fr5
1.30 + ftrc fr5, fpul
1.31 + sts fpul, r4
1.32 + mov.l @r10+, r5
1.33 + cmp/eq r4, r5
1.34 + bt test_ftrc_12_ok
1.35 + fail test_ftrc_str_k
1.36 +test_ftrc_12_ok:
1.37 + dt r11
1.38 + bf test_ftrc_12_loop
1.39 + bra test_ftrc_end
1.40 + nop
1.41 +test_ftrc_12_data:
1.42 + .long 0x449a5314
1.43 + .long 0x000004D2
1.44 + .long 0xC5A9C785
1.45 + .long 0xFFFFEAC8
1.46 + .long 0x49098291
1.47 + .long 0x00089829
1.48 + .long 0xC2DA999A
1.49 + .long 0xFFFFFF93
1.50 +
1.51 test_ftrc_end:
1.52 + mov.l @r15+, r10
1.53 + mov.l @r15+, r11
1.54 end_test test_ftrc_str_k
1.55
1.56 test_ftrc_str:
.