Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fbc: float to boolean conversion handling
- fbc: internal add AST_OP_BOOLNOT logical unary operator - gcc backend: used internally by gcc backend for emitting the logical not '!' operator - gas SSE backend: add operation to load Boolean from Float - gas SSE/x86 backend: check parity (NaN) on Float to boolean conversion, extra check is removed when using '-fpmode fast' and enabled in '-fpmode precise' (the default). - test-suite: add test for float to bool The intent with this change is have cbool(float) behave consistently across all targets - cbool( float ) is FALSE if and only if float = 0. - For any other value (including NaN's) cbool(float) returns TRUE
- Loading branch information
Showing
8 changed files
with
306 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.