adding float02, some fun with testfloat

This commit is contained in:
David Welch
2012-06-13 02:34:58 -04:00
parent e063695a38
commit 794354527d
8 changed files with 1099 additions and 0 deletions

13
float02/README Normal file
View File

@@ -0,0 +1,13 @@
See the README one level up about where to find the reference manual
for the stm32f4 and schematics for the board.
Just having some fun. Curious to know how the hardware fpu compared
to TestFloat. Extracted only the add function which is easy/boring
and it looks good. A NaN is not a fixed bit pattern so not surprising
they dont match. I guess I could have said if this is a nan and that
is a nan then pass, instead I said if TestFloat says nan, continue;
llvm likes to throw memcpy()'s into code with structures where gcc
doesnt. Very ugly memcpy() implementation, which probably hurts llvm's
overall slowfloat performance.