Commit 5c9b497
authored
[AArch64][GlobalISel] Select *v1f16 for f16->s16 to_int_sat_gi (#154562)
Conversions from f16 to s16 performed by to_int_sat_gi can be done
directly within FPRs, e.g. `fcvtzs h0, h0`.
Generating this format reduces the number of instruction required for
correct behaviour, as it sidesteps the issues with incorrect saturation
that arise when using `fcvtzs w0, h0` for the same casts.
---------
Signed-off-by: Kajetan Puchalski <[email protected]>1 parent 9565763 commit 5c9b497
File tree
5 files changed
+25
-15
lines changed- llvm
- lib/Target/AArch64
- GISel
- test/CodeGen/AArch64
5 files changed
+25
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6539 | 6539 | | |
6540 | 6540 | | |
6541 | 6541 | | |
| 6542 | + | |
| 6543 | + | |
| 6544 | + | |
| 6545 | + | |
| 6546 | + | |
| 6547 | + | |
6542 | 6548 | | |
6543 | 6549 | | |
6544 | 6550 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
879 | 879 | | |
880 | 880 | | |
881 | 881 | | |
882 | | - | |
883 | | - | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
884 | 885 | | |
885 | 886 | | |
886 | 887 | | |
| |||
Lines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
848 | 848 | | |
849 | 849 | | |
850 | 850 | | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
851 | 863 | | |
852 | 864 | | |
853 | | - | |
854 | | - | |
855 | 865 | | |
856 | 866 | | |
857 | 867 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
689 | 689 | | |
690 | 690 | | |
691 | 691 | | |
692 | | - | |
693 | | - | |
694 | | - | |
695 | | - | |
696 | | - | |
697 | | - | |
698 | | - | |
| 692 | + | |
| 693 | + | |
699 | 694 | | |
700 | 695 | | |
701 | 696 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
546 | 546 | | |
547 | 547 | | |
548 | 548 | | |
549 | | - | |
550 | | - | |
551 | | - | |
552 | | - | |
| 549 | + | |
| 550 | + | |
553 | 551 | | |
554 | 552 | | |
555 | 553 | | |
| |||
0 commit comments