[llvm] Match fixed width ISD::AVGFLOORS + ISD::AVGCEILS patterns (PR #86222)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 24 02:08:28 PDT 2024


================
@@ -341,6 +341,18 @@ define <8 x i16> @sub_fixedwidth_v4i32(<8 x i16> %a0, <8 x i16> %a1)  {
   ret <8 x i16> %res
 }
 
+define <8 x i16> @shsub_fixedwidth_v4i32(<8 x i16> %a0, <8 x i16> %a1)  {
----------------
RKSimon wrote:

shsub_fixedwidth_v4i32 -> srhadd_fixedwidth_v8i16 (its matching the shsub instruction for v8i16 types)

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


More information about the llvm-commits mailing list