Search
lxdream.org :: lxdream/test/sh4/float.s :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename test/sh4/float.s
changeset 358:65043a8f5785
prev357:3592a10b3242
next548:cd1720e7b8a7
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/float.s Tue Feb 13 08:34:27 2007 +0000
1.2 +++ b/test/sh4/float.s Thu Aug 23 12:31:31 2007 +0000
1.3 @@ -186,24 +186,83 @@
1.4 sts fpul, r2
1.5 mov.l test_float_6_result, r1
1.6 cmp/eq r1, r2
1.7 - bt test_float_end
1.8 + bt test_float_7
1.9
1.10 test_float_6_fail:
1.11 fail test_float_str_k
1.12 - bra test_float_end
1.13 + bra test_float_7
1.14 nop
1.15
1.16 test_float_6_input:
1.17 .long 0x80000000
1.18 test_float_6_result:
1.19 .long 0xCF000000
1.20 +
1.21 +test_float_7:
1.22 + add #1, r12
1.23 + fldi0 fr8
1.24 + fldi0 fr9
1.25 + fldi0 fr10
1.26 + frchg
1.27 + fldi0 fr8
1.28 + fldi0 fr9
1.29 + fldi0 fr10
1.30 + setpr
1.31 + mov.l test_float_7_input, r0
1.32 + lds r0, fpul
1.33 + float fpul, fr9
1.34 + sts fpul,r1
1.35 + cmp/eq r0,r1
1.36 + bf test_float_7_fail
1.37 + flds fr8, fpul
1.38 + sts fpul, r0
1.39 + tst r0, r0
1.40 + bf test_float_7_fail
1.41 + flds fr9, fpul
1.42 + sts fpul, r0
1.43 + mov.l test_float_7_output_a, r1
1.44 + cmp/eq r0, r1
1.45 + bf test_float_7_fail
1.46 + flds fr10, fpul
1.47 + sts fpul, r0
1.48 + tst r0, r0
1.49 + bf test_float_7_fail
1.50 + frchg
1.51 + flds fr8, fpul
1.52 + sts fpul, r0
1.53 + flds fr9, fpul
1.54 + sts fpul, r1
1.55 + flds fr10, fpul
1.56 + sts fpul, r2
1.57 + tst r0, r0
1.58 + bf test_float_7_fail
1.59 + tst r1, r1
1.60 + bf test_float_7_fail
1.61 + tst r2, r2
1.62 + bt test_float_end
1.63 +test_float_7_fail:
1.64 + fail test_float_str_k
1.65 + bra test_float_end
1.66 + nop
1.67 +
1.68 +test_float_7_input:
1.69 + .long 0x12345678
1.70 +test_float_7_output_a:
1.71 + .long 0x41B23456
1.72 +test_float_7_output_b:
1.73 + .long 0x78000000
1.74 +printf_k:
1.75 + .long _printf
1.76
1.77 test_float_end:
1.78 end_test test_float_str_k
1.79
1.80 test_float_str:
1.81 .string "FLOAT"
1.82 + .align 4
1.83 +printf_fmt:
1.84 + .string "%08X %08X\n"
1.85
1.86 .align 4
1.87 test_float_str_k:
1.88 - .long test_float_str
1.89 \ No newline at end of file
1.90 + .long test_float_str
.