Commit 6dcece4
[GlobalISel][AArch64] Fix fptoi.sat lowering. (#127901)
The SDAG version uses fminnum/fmaxnum, in converting it to fcmp+select
it appears the order of the operands was chosen badly. This switches the
conditions used to keep the constant on the RHS.
(cherry picked from commit 70ed381)1 parent 05cce88 commit 6dcece4
File tree
5 files changed
+158
-158
lines changed- llvm
- lib/CodeGen/GlobalISel
- test/CodeGen/AArch64
5 files changed
+158
-158
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7801 | 7801 | | |
7802 | 7802 | | |
7803 | 7803 | | |
7804 | | - | |
| 7804 | + | |
7805 | 7805 | | |
7806 | 7806 | | |
7807 | 7807 | | |
7808 | 7808 | | |
7809 | 7809 | | |
7810 | | - | |
| 7810 | + | |
7811 | 7811 | | |
7812 | 7812 | | |
7813 | 7813 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
987 | 987 | | |
988 | 988 | | |
989 | 989 | | |
990 | | - | |
| 990 | + | |
991 | 991 | | |
992 | 992 | | |
993 | 993 | | |
994 | 994 | | |
995 | | - | |
| 995 | + | |
996 | 996 | | |
997 | 997 | | |
998 | | - | |
| 998 | + | |
999 | 999 | | |
1000 | 1000 | | |
1001 | 1001 | | |
1002 | | - | |
| 1002 | + | |
1003 | 1003 | | |
1004 | | - | |
| 1004 | + | |
1005 | 1005 | | |
1006 | 1006 | | |
1007 | 1007 | | |
1008 | | - | |
| 1008 | + | |
1009 | 1009 | | |
1010 | 1010 | | |
1011 | 1011 | | |
| |||
0 commit comments