Repository navigation
Commit 78f84b6
authored
[LLVM][APFloat] Add APFloat support for 8-bit UE5M3 type (llvm#210720)
This commit adds APFloat support for UE5M3 type and the associated tests. It is an 8 bit FP type with no sign bit, 5 exponent and 3 mantissa bits
| Property | Value |
|-----------------|------------|
| Max exponent | 31 |
| Bias | 15 |
| Zero encoding | 00000 000 |
| Smallest denorm | 00000 001 |
| Largest denorm | 00000 111 |
| Smallest norm | 00001 000 |
| Largest norm | 11111 110 |
| Canonical NaN | 11111 111 |
Please refer [PTX ISA](https://docs.nvidia.com/cuda/developer-preview/13.4/parallel-thread-execution/index.html#alternate-floating-point-data-formats) for more info
Assisted by: Claude Code (Opus 4.8)1 parent 1d4e04f commit 78f84b6
4 files changed
Lines changed: 376 additions & 24 deletions
File tree
- clang/lib/AST
- llvm
- include/llvm/ADT
- lib/Support
- unittests/ADT
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1019 | 1019 | | |
1020 | 1020 | | |
1021 | 1021 | | |
| 1022 | + | |
1022 | 1023 | | |
1023 | 1024 | | |
1024 | 1025 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
259 | 265 | | |
260 | 266 | | |
261 | 267 | | |
| |||
279 | 285 | | |
280 | 286 | | |
281 | 287 | | |
| 288 | + | |
282 | 289 | | |
283 | 290 | | |
284 | 291 | | |
| |||
312 | 319 | | |
313 | 320 | | |
314 | 321 | | |
| 322 | + | |
315 | 323 | | |
316 | 324 | | |
317 | 325 | | |
| |||
778 | 786 | | |
779 | 787 | | |
780 | 788 | | |
| 789 | + | |
781 | 790 | | |
782 | 791 | | |
783 | 792 | | |
| |||
799 | 808 | | |
800 | 809 | | |
801 | 810 | | |
| 811 | + | |
802 | 812 | | |
803 | 813 | | |
804 | 814 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
100 | 111 | | |
101 | 112 | | |
102 | 113 | | |
| |||
154 | 165 | | |
155 | 166 | | |
156 | 167 | | |
| 168 | + | |
| 169 | + | |
157 | 170 | | |
158 | 171 | | |
159 | 172 | | |
| |||
200 | 213 | | |
201 | 214 | | |
202 | 215 | | |
| 216 | + | |
| 217 | + | |
203 | 218 | | |
204 | 219 | | |
205 | 220 | | |
| |||
319 | 334 | | |
320 | 335 | | |
321 | 336 | | |
322 | | - | |
| 337 | + | |
323 | 338 | | |
324 | 339 | | |
325 | 340 | | |
| |||
3575 | 3590 | | |
3576 | 3591 | | |
3577 | 3592 | | |
| 3593 | + | |
| 3594 | + | |
| 3595 | + | |
| 3596 | + | |
| 3597 | + | |
3578 | 3598 | | |
3579 | 3599 | | |
3580 | 3600 | | |
| |||
3642 | 3662 | | |
3643 | 3663 | | |
3644 | 3664 | | |
| 3665 | + | |
| 3666 | + | |
| 3667 | + | |
3645 | 3668 | | |
3646 | 3669 | | |
3647 | 3670 | | |
| |||
3716 | 3739 | | |
3717 | 3740 | | |
3718 | 3741 | | |
| 3742 | + | |
| 3743 | + | |
| 3744 | + | |
| 3745 | + | |
3719 | 3746 | | |
3720 | 3747 | | |
3721 | 3748 | | |
| |||
3953 | 3980 | | |
3954 | 3981 | | |
3955 | 3982 | | |
| 3983 | + | |
| 3984 | + | |
3956 | 3985 | | |
3957 | 3986 | | |
3958 | 3987 | | |
| |||
6030 | 6059 | | |
6031 | 6060 | | |
6032 | 6061 | | |
| 6062 | + | |
6033 | 6063 | | |
6034 | 6064 | | |
6035 | 6065 | | |
| |||
6039 | 6069 | | |
6040 | 6070 | | |
6041 | 6071 | | |
6042 | | - | |
| 6072 | + | |
| 6073 | + | |
6043 | 6074 | | |
6044 | 6075 | | |
6045 | 6076 | | |
| |||
0 commit comments