Search
lxdream.org :: lxdream/test/sh4/fsrra.s :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename test/sh4/fsrra.s
changeset 1192:ba3df0bf2c23
author nkeynes
date Mon Dec 12 09:54:27 2011 +1000 (10 years ago)
permissions -rw-r--r--
last change FSRRA uses higher precision for intermediate results - change sqrtf to sqrt.
file annotate diff log raw
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/test/sh4/fsrra.s Mon Dec 12 09:54:27 2011 +1000
1.3 @@ -0,0 +1,85 @@
1.4 +.section .text
1.5 +.include "sh4/inc.s"
1.6 +
1.7 +.global _test_fsrra
1.8 +_test_fsrra:
1.9 + start_test
1.10 + mov.l r11, @-r15
1.11 + mov.l test_fsrra_data_k, r11
1.12 +
1.13 +test_fsrra_loop:
1.14 + mov.l test_fsrra_data_end_k, r4
1.15 + cmp/eq r11, r4
1.16 + bt test_fsrra_end
1.17 + add #1, r12
1.18 +
1.19 + fmov @r11+, fr5
1.20 + fsrra fr5
1.21 + flds fr5, fpul
1.22 + sts fpul, r5
1.23 + mov.l @r11+, r4
1.24 + cmp/eq r4, r5
1.25 + bt test_fsrra_loop
1.26 +
1.27 + mov.l test_fsrra_error_k, r3
1.28 + jsr @r3
1.29 + fail test_fsrra_str_k
1.30 + bra test_fsrra_loop
1.31 + nop
1.32 +
1.33 +test_fsrra_end:
1.34 + mov.l @r15+, r11
1.35 + end_test test_fsrra_str_k
1.36 +
1.37 + .align 4
1.38 +test_fsrra_data_k:
1.39 + .long test_fsrra_data
1.40 +test_fsrra_data:
1.41 +test_fsrra_data_1:
1.42 + .long 0x3F800000
1.43 + .long 0x3F800000
1.44 +
1.45 + .long 0x43214321
1.46 + .long 0x3da14613
1.47 +
1.48 + .long 0x3B0D693E
1.49 + .long 0x41ac38ca
1.50 +
1.51 + .long 0x3B5D87B7
1.52 + .long 0x41899934
1.53 +
1.54 + .long 0x41899934
1.55 + .long 0x3e76e8e3
1.56 +
1.57 +# .long 0xFFFFFFF0
1.58 +# .long 0x7fbfffff
1.59 +
1.60 + .long 0x00000040
1.61 + .long 0x633504f3
1.62 +
1.63 + .long 0xFFFFFF80
1.64 + .long 0xffffff80
1.65 +
1.66 + .long 0x00000001
1.67 + .long 0x64b504f3
1.68 +
1.69 + .long 0x98765432
1.70 + .long 0xffc00000
1.71 +
1.72 + .long 0x64b504f3
1.73 + .long 0x2cd744fd
1.74 +
1.75 + .long 0x2cd744fd
1.76 + .long 0x48c5672a
1.77 +
1.78 +test_fsrra_data_end:
1.79 + .align 4
1.80 +test_fsrra_data_end_k:
1.81 + .long test_fsrra_data_end
1.82 +test_fsrra_str_k:
1.83 + .long test_fsrra_str
1.84 +test_fsrra_error_k:
1.85 + .long _test_print_float_error
1.86 +test_fsrra_str:
1.87 + .string "FSRRA"
1.88 +
1.89 \ No newline at end of file
.