Search
lxdream.org :: lxdream/test/sh4/ftrc.s :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename test/sh4/ftrc.s
changeset 358:65043a8f5785
prev357:3592a10b3242
next393:5e5335b61373
author nkeynes
date Thu Aug 23 12:31:31 2007 +0000 (13 years ago)
permissions -rw-r--r--
last change Add tests for mac.l and mac.w
Start test cases for fmov
Update exception tests
file annotate diff log raw
1.1 --- a/test/sh4/ftrc.s Tue Feb 13 08:34:27 2007 +0000
1.2 +++ b/test/sh4/ftrc.s Thu Aug 23 12:31:31 2007 +0000
1.3 @@ -101,11 +101,11 @@
1.4 nop
1.5
1.6 test_ftrc_4_input_a:
1.7 - .long 0x41DFFFFF
1.8 + .long 0x40FFFF11
1.9 test_ftrc_4_input_b:
1.10 - .long 0xFFC00000
1.11 + .long 0x11111111
1.12 test_ftrc_4_result:
1.13 - .long 0x7FFFFFFF
1.14 + .long 0x0001FFF1
1.15
1.16
1.17 test_ftrc_5: ! test w/ max +int, sz=0, pr=0, fr=1
1.18 @@ -177,7 +177,7 @@
1.19 bt test_ftrc_8
1.20 test_ftrc_7_fail:
1.21 fail test_ftrc_str_k
1.22 - bra test_ftrc_7
1.23 + bra test_ftrc_8
1.24 nop
1.25
1.26 test_ftrc_7_input:
1.27 @@ -194,10 +194,10 @@
1.28 sts fpul, r2
1.29 mov.l test_ftrc_8_result, r1
1.30 cmp/eq r1, r2
1.31 - bt test_ftrc_end
1.32 + bt test_ftrc_9
1.33 test_ftrc_8_fail:
1.34 fail test_ftrc_str_k
1.35 - bra test_ftrc_8
1.36 + bra test_ftrc_9
1.37 nop
1.38
1.39 test_ftrc_8_input:
1.40 @@ -205,7 +205,89 @@
1.41 test_ftrc_8_result:
1.42 .long 0x80000000
1.43
1.44 +test_ftrc_9: ! Test >max +int pr=1
1.45 + add #1, r12
1.46 + setpr
1.47 + mov.l test_ftrc_9_input_a, r0
1.48 + lds r0, fpul
1.49 + fsts fpul, fr6
1.50 + mov.l test_ftrc_9_input_b, r0
1.51 + lds r0, fpul
1.52 + fsts fpul, fr7
1.53 + ftrc fr6, fpul
1.54 + sts fpul, r2
1.55 + mov.l test_ftrc_9_result, r1
1.56 + cmp/eq r1, r2
1.57 + bt test_ftrc_10
1.58 +test_ftrc_9_fail:
1.59 + fail test_ftrc_str_k
1.60 + bra test_ftrc_10
1.61 + nop
1.62
1.63 +test_ftrc_9_input_a:
1.64 + .long 0x41DFFFFF
1.65 +test_ftrc_9_input_b:
1.66 + .long 0xFFC00000
1.67 +test_ftrc_9_result:
1.68 + .long 0x7FFFFFFF
1.69 +
1.70 +test_ftrc_10: ! test < min -int
1.71 + add #1, r12
1.72 + mov.l test_ftrc_10_input_a, r0
1.73 + lds r0, fpul
1.74 + fsts fpul, fr8
1.75 + mov.l test_ftrc_10_input_b, r0
1.76 + lds r0, fpul
1.77 + fsts fpul, fr9
1.78 + ftrc fr8, fpul
1.79 + sts fpul, r2
1.80 + mov.l test_ftrc_10_result, r1
1.81 + cmp/eq r1, r2
1.82 + bt test_ftrc_11
1.83 +test_ftrc_10_fail:
1.84 + fail test_ftrc_str_k
1.85 + bra test_ftrc_11
1.86 + nop
1.87 +
1.88 +test_ftrc_10_input_a:
1.89 + .long 0xFE111111
1.90 +test_ftrc_10_input_b:
1.91 + .long 0x11111111
1.92 +test_ftrc_10_result:
1.93 + .long 0x80000000
1.94 +
1.95 +test_ftrc_11: ! test undefined instruction, pr=1
1.96 + add #1, r12
1.97 + mov.l test_ftrc_11_input_a, r0
1.98 + lds r0, fpul
1.99 + fsts fpul, fr0
1.100 + mov.l test_ftrc_11_input_b, r1
1.101 + lds r1, fpul
1.102 + fsts fpul, fr1
1.103 + mov.l test_ftrc_11_input_c, r0
1.104 + lds r0, fpul
1.105 + fsts fpul, fr2
1.106 + xor r0, r0
1.107 + not r0, r0
1.108 + lds r0, fpul
1.109 + ftrc fr1, fpul
1.110 + sts fpul, r1
1.111 + mov.l test_ftrc_11_result, r2
1.112 + cmp/eq r1, r2
1.113 + bt test_ftrc_end
1.114 +test_ftrc_11_fail:
1.115 + fail test_ftrc_str_k
1.116 + bra test_ftrc_end
1.117 + nop
1.118 +test_ftrc_11_input_a:
1.119 + .long 0x40FFFF11
1.120 +test_ftrc_11_input_b:
1.121 + .long 0x11111111
1.122 +test_ftrc_11_input_c:
1.123 + .long 0x42FFFF11
1.124 +test_ftrc_11_result:
1.125 + .long 0x00000000
1.126 +
1.127 test_ftrc_end:
1.128 end_test test_ftrc_str_k
1.129
.