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

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 18 00:06:48 PDT 2024


================
@@ -5343,9 +5343,13 @@ def VImm8000: PatLeaf<(AArch64mvni_msl (i32 127), (i32 264))>;
 // trunc(umin(X, 255)) -> UQXTRN v8i8
 def : Pat<(v8i8 (trunc (umin (v8i16 V128:$Vn), (v8i16 VImmFF)))),
           (UQXTNv8i8 V128:$Vn)>;
+def : Pat<(v8i8 (truncusat (v8i16 V128:$Vn))),
----------------
topperc wrote:

What are the t18 and t21 nodes. It looks like you only pasted part of the DAG.

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


More information about the llvm-commits mailing list