[llvm] [GlobalISel][AArch64] Add G_FPTOSI_SAT/G_FPTOUI_SAT (PR #96297)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 2 06:24:24 PDT 2024


================
@@ -2130,6 +2130,12 @@ bool AArch64InstructionSelector::preISelLower(MachineInstr &I) {
     }
     return false;
   }
+  case TargetOpcode::G_FPTOSI_SAT:
+    I.setDesc(TII.get(TargetOpcode::G_FPTOSI));
----------------
arsenm wrote:

Although maybe that would be better handled by having it clamp during the legalization? 

https://github.com/llvm/llvm-project/pull/96297


More information about the llvm-commits mailing list