[llvm] [DAG] SelectionDAG::canCreateUndefOrPoison - Mark AVGFLOORS and AVGCEILS as safe (PR #148191)

David Green via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 17 03:21:01 PDT 2025


================
@@ -0,0 +1,76 @@
+; RUN: llc < %s -march=arm64 -mattr=+neon | FileCheck %s
+
+; Test that the presence of 'freeze' does not block instruction selection of:
+; - uhadd
+; - urhadd
+; - shadd
+; - srhadd
+
+declare <8 x i16> @llvm.aarch64.neon.uhadd.v8i16(<8 x i16>, <8 x i16>)
+declare <8 x i16> @llvm.aarch64.neon.urhadd.v8i16(<8 x i16>, <8 x i16>)
+declare <8 x i16> @llvm.aarch64.neon.shadd.v8i16(<8 x i16>, <8 x i16>)
+declare <8 x i16> @llvm.aarch64.neon.srhadd.v8i16(<8 x i16>, <8 x i16>)
+
+;===---------------------------------------------------------------------===;
----------------
davemgreen wrote:

Remove these `;===-----`'s. They don't add much.

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


More information about the llvm-commits mailing list