[llvm] [DAG] Support saturated truncate (PR #99418)

Thorsten Schütt via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 27 06:50:29 PDT 2024


================
@@ -814,6 +814,13 @@ enum NodeType {
 
   /// TRUNCATE - Completely drop the high bits.
   TRUNCATE,
+  /// TRUNCATE_[SU]SAT - Truncate for saturated operand
+  TRUNCATE_SSAT_S, // saturate signed input to signed result -
+                   // truncate(smin(smax(x)))
----------------
tschuett wrote:

Could you please spell out the parameters for my eyes? [s|u][min|max] have two parameters.

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


More information about the llvm-commits mailing list