[llvm] select v_sat_pk from 2 i16 (PR #121124)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 25 21:01:23 PST 2024
================
@@ -315,6 +315,20 @@ def srl_16 : PatFrag<
(ops node:$src0), (srl_oneuse node:$src0, (i32 16))
>;
+def clamp_s16_u8 : PatFrag<
+ (ops node:$src),
+ (i16 (AMDGPUsmed3 $src, (i16 0), (i16 255)))
+>;
+
+def conc_lo_u8_i16 : PatFrags<
----------------
Shoreshen wrote:
I'll add another pattern of addition... sorry for the trouble its my first PR....
https://github.com/llvm/llvm-project/pull/121124
More information about the llvm-commits
mailing list