Commit 0b52aa1
authored
[flang] Unsupported rounding modes (#128240)
Two new ieee_round_type values were added in f18 beyond the four values
defined in f03 and f08: ieee_away and ieee_other. Contemporary hardware
typically does not have support for these rounding modes, so flang does
not support them. ieee_support_rounding calls for these values return
false. Current generated code handles some attempts to set the rounding
mode to one of these unsupported values by setting the mode to
ieee_nearest. Update the code to explicitly do this in all cases.1 parent 3a6108b commit 0b52aa1
File tree
4 files changed
+269
-199
lines changed- flang
- docs
- lib/Optimizer/Builder
- test/Lower/Intrinsics
4 files changed
+269
-199
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
815 | 815 | | |
816 | 816 | | |
817 | 817 | | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
818 | 826 | | |
819 | 827 | | |
820 | 828 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5519 | 5519 | | |
5520 | 5520 | | |
5521 | 5521 | | |
5522 | | - | |
| 5522 | + | |
| 5523 | + | |
| 5524 | + | |
5523 | 5525 | | |
5524 | 5526 | | |
5525 | 5527 | | |
5526 | | - | |
| 5528 | + | |
5527 | 5529 | | |
5528 | 5530 | | |
| 5531 | + | |
| 5532 | + | |
| 5533 | + | |
| 5534 | + | |
| 5535 | + | |
| 5536 | + | |
| 5537 | + | |
| 5538 | + | |
| 5539 | + | |
| 5540 | + | |
| 5541 | + | |
| 5542 | + | |
| 5543 | + | |
| 5544 | + | |
| 5545 | + | |
| 5546 | + | |
| 5547 | + | |
| 5548 | + | |
5529 | 5549 | | |
5530 | 5550 | | |
5531 | 5551 | | |
| |||
0 commit comments