-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ir/constant: Add support for 16-bit floating-point constants.
- Loading branch information
Showing
4 changed files
with
87 additions
and
34 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
@a1 = global half 0xH3C00 ; 1.0 | ||
@a2 = global half 0xH4000 ; 2.0 | ||
@a3 = global half 0xHC000 ; -2.0 | ||
@a4 = global half 0xH7BFE ; 65472.0 | ||
@a5 = global half 0xH7BFF ; 65504.0 | ||
@a6 = global half 0xHFBFF ; -65504.0 | ||
@a7 = global half 0xH0000 ; 0.0 | ||
@a8 = global half 0xH8000 ; -0.0 | ||
@a9 = global half 0xH7C00 ; +inf | ||
@a10 = global half 0xHFC00 ; -inf | ||
@a11 = global half 0xH5B8F ; 241.875 | ||
@a12 = global half 0xH48C8 ; 9.5625 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
@a1 = global half 1.0 | ||
@a2 = global half 2.0 | ||
@a3 = global half -2.0 | ||
@a4 = global half 65472.0 | ||
@a5 = global half 65504.0 | ||
@a6 = global half -65504.0 | ||
@a7 = global half 0.0 | ||
@a8 = global half -0.0 | ||
@a9 = global half 0xH7C00 | ||
@a10 = global half 0xHFC00 | ||
@a11 = global half 241.875 | ||
@a12 = global half 9.5625 |
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