[llvm] [X86] Move X86ISD::FP_TO_SINT_SAT/FP_TO_UINT_SAT outside of the MEMORY_OPCODE enum block (PR #140272)

via llvm-commits llvm-commits at lists.llvm.org
Fri May 16 08:59:49 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-backend-x86

Author: Simon Pilgrim (RKSimon)

<details>
<summary>Changes</summary>

Move to closer to the other regular conversion opcodes

Fixes #<!-- -->140271

---
Full diff: https://github.com/llvm/llvm-project/pull/140272.diff


1 Files Affected:

- (modified) llvm/lib/Target/X86/X86ISelLowering.h (+4-4) 


``````````diff
diff --git a/llvm/lib/Target/X86/X86ISelLowering.h b/llvm/lib/Target/X86/X86ISelLowering.h
index 662552a972249..00917115e9df2 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.h
+++ b/llvm/lib/Target/X86/X86ISelLowering.h
@@ -724,6 +724,10 @@ namespace llvm {
     MCVTSI2P,
     MCVTUI2P,
 
+    // Custom handling for FP_TO_xINT_SAT
+    FP_TO_SINT_SAT,
+    FP_TO_UINT_SAT,
+
     // Vector float to bfloat16.
     // Convert packed single data to packed BF16 data
     CVTNEPS2BF16,
@@ -917,10 +921,6 @@ namespace llvm {
     // Load x87 FPU environment from memory.
     FLDENVm,
 
-    // Custom handling for FP_TO_xINT_SAT
-    FP_TO_SINT_SAT,
-    FP_TO_UINT_SAT,
-
     /// This instruction implements FP_TO_SINT with the
     /// integer destination in memory and a FP reg source.  This corresponds
     /// to the X86::FIST*m instructions and the rounding mode change stuff. It

``````````

</details>


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


More information about the llvm-commits mailing list