Search
lxdream.org :: lxdream/test/sh4/testsh4.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename test/sh4/testsh4.c
changeset 1192:ba3df0bf2c23
prev1083:34895c8bab20
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 --- a/test/sh4/testsh4.c Wed Dec 02 10:36:49 2009 +1000
1.2 +++ b/test/sh4/testsh4.c Mon Dec 12 09:54:27 2011 +1000
1.3 @@ -4,6 +4,11 @@
1.4 int total_tests = 0;
1.5 int total_fails = 0;
1.6
1.7 +void test_print_float_error( int expect, int actual )
1.8 +{
1.9 + fprintf( stderr, "Error: expected 0x%08x but was 0x%08x\n", expect, actual );
1.10 +}
1.11 +
1.12 int test_print_result( char *testname, int failed, int total )
1.13 {
1.14 fprintf( stdout, "%s: %d/%d tests passed\n", testname, total-failed, total );
1.15 @@ -83,6 +88,7 @@
1.16 test_div0();
1.17 test_div1();
1.18 test_float();
1.19 + test_fsrra();
1.20 test_fmov();
1.21 test_ftrc();
1.22 test_ldc();
.