[clang] [llvm] [AArch64] Implement STNP/LDNP intrinsics (PR #238416)
Martin Wehking via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 11 02:45:29 PST 2026
================
@@ -0,0 +1,143 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 6
+; RUN: llc -mtriple=aarch64 -verify-machineinstrs %s -o - | FileCheck %s --check-prefixes=CHECK-LE
+; RUN: llc -mtriple=aarch64_be -verify-machineinstrs %s -o - | FileCheck %s --check-prefixes=CHECK-BE
+
+define { <16 x i8>, <16 x i8> } @test_vldnq_i8_x2(ptr %0) {
+; CHECK-LE-LABEL: test_vldnq_i8_x2:
+; CHECK-LE: // %bb.0:
+; CHECK-LE-NEXT: ldnp q0, q1, [x0]
+; CHECK-LE-NEXT: ret
+;
+; CHECK-BE-LABEL: test_vldnq_i8_x2:
+; CHECK-BE: // %bb.0:
+; CHECK-BE-NEXT: ldnp q0, q1, [x0]
+; CHECK-BE-NEXT: rev64 v0.16b, v0.16b
+; CHECK-BE-NEXT: rev64 v1.16b, v1.16b
+; CHECK-BE-NEXT: ext v0.16b, v0.16b, v0.16b, #8
+; CHECK-BE-NEXT: ext v1.16b, v1.16b, v1.16b, #8
+; CHECK-BE-NEXT: ret
+ %2 = call { <16 x i8>, <16 x i8> } @llvm.aarch64.neon.vldnq.x2.v16i8(ptr %0)
----------------
MartinWehking wrote:
ah thanks, Kieran. I was not sure if I should ping you
https://github.com/llvm/llvm-project/pull/238416
More information about the cfe-commits
mailing list