From e47e96d74691b07d99b74750584a629d83a30fee Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Fri, 16 May 2025 16:58:01 +0100 Subject: [PATCH] [X86] Move X86ISD::FP_TO_SINT_SAT/FP_TO_UINT_SAT outside of the MEMORY_OPCODE enum block Move to closer to the other regular conversion opcodes Fixes #140271 --- llvm/lib/Target/X86/X86ISelLowering.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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