Testing: Add new tests, and new ways of testing, for floating-point.

- Adds a pragma to see binary output of double values (not portable)
- Print decimals that show more values, but in a portable way
  (lots of portability issues)
- Expand the tests to test more double values

Note: it is quite difficult to have 100% portable tests for floating point.
The current situation works by not printing full precision, and working around
several portability issues.
This commit is contained in:
John Kessenich 2018-05-24 18:11:47 -06:00
parent 8e4b496d4a
commit 1ea1b13f38
11 changed files with 1161 additions and 78 deletions

View file

@ -66,7 +66,7 @@ ERROR: node is still EOpNull!
0:74 move second child to first child ( temp highp float)
0:74 'funkyf' ( global highp float)
0:75 Constant:
0:75 12300000000000000.000000
0:75 1.2300000000000e+16
0:85 Sequence
0:84 move second child to first child ( temp highp int)
0:84 'funkyh' ( global highp int)
@ -200,7 +200,7 @@ ERROR: node is still EOpNull!
0:74 move second child to first child ( temp highp float)
0:74 'funkyf' ( global highp float)
0:75 Constant:
0:75 12300000000000000.000000
0:75 1.2300000000000e+16
0:85 Sequence
0:84 move second child to first child ( temp highp int)
0:84 'funkyh' ( global highp int)