[llvm] [AMDGPU] Use `v_cvt_pk_*` instructions for i16_f32 saturated conversions (PR #202680)
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 11 08:12:40 PDT 2026
================
@@ -724,6 +724,21 @@ def S_MAX_U32 : SOP2_32 <"s_max_u32",
} // End isCommutable = 1
} // End Defs = [SCC]
+// f32 -> i16 saturated conversions. Required because those conversions
----------------
jayfoad wrote:
Do the S_CVT_U32_F32 / S_CVT_I32_F32 instructions saturate?
https://github.com/llvm/llvm-project/pull/202680
More information about the llvm-commits
mailing list