[llvm] [AArch64] Add bfloat patterns for `partial_reduce_fmla` (PR #181982)

Sander de Smalen via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 18 06:03:44 PST 2026


================
@@ -0,0 +1,126 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
+; RUN: llc -enable-subreg-liveness -mattr=+sve,+bf16 -force-streaming-compatible  < %s | FileCheck %s
+; RUN: llc -enable-subreg-liveness -mattr=+sme,+bf16 -force-streaming  < %s | FileCheck %s
+; RUN: llc -enable-subreg-liveness -mattr=+bf16 -force-streaming-compatible < %s | FileCheck %s --check-prefix=NONEON-NOSVE
+
+target triple = "aarch64-unknown-linux-gnu"
+
+;
+; Partial reduce (BFMLALT/B)
+;
+
+define <4 x float> @partial_reduce_to_v4f32(<4 x float> %acc, <8 x bfloat> %a, <8 x bfloat> %b) {
----------------
sdesmalen-arm wrote:

Could you also add a test for sve-vector-bits=256 and vectors twice as wide?

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


More information about the llvm-commits mailing list