[llvm] [AArch64] Improve lowering for scalable masked deinterleaving loads (PR #154338)

Cullen Rhodes via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 20 07:49:48 PDT 2025


================
@@ -0,0 +1,542 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
+; RUN: llc -mtriple=aarch64-linux-gnu -mattr=+sve < %s | FileCheck %s
+
+define <vscale x 16 x i8> @foo_ld2_nxv16i8(<vscale x 16 x i1> %mask, ptr %p) {
+; CHECK-LABEL: foo_ld2_nxv16i8:
+; CHECK:       // %bb.0:
+; CHECK-NEXT:    ld2b { z0.b, z1.b }, p0/z, [x0]
+; CHECK-NEXT:    add z0.b, z0.b, z1.b
+; CHECK-NEXT:    ret
+  %interleaved.mask = tail call <vscale x 32 x i1> @llvm.vector.interleave2.nxv32i1(<vscale x 16 x i1> %mask, <vscale x 16 x i1> %mask)
----------------
c-rhodes wrote:

nit: i think for the purpose of these tests `tail` can be dropped from the calls

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


More information about the llvm-commits mailing list