[PATCH] D133498: [AArch64] Add test for vscale nontemporal loads larger than 256.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 8 09:04:15 PDT 2022


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG04548e82ed7c: [AArch64] Add test for vscale nontemporal loads larger than 256. (authored by zjaffal, committed by fhahn).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D133498/new/

https://reviews.llvm.org/D133498

Files:
  llvm/test/CodeGen/AArch64/nontemporal-load.ll


Index: llvm/test/CodeGen/AArch64/nontemporal-load.ll
===================================================================
--- llvm/test/CodeGen/AArch64/nontemporal-load.ll
+++ llvm/test/CodeGen/AArch64/nontemporal-load.ll
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
-; RUN: llc < %s -mtriple aarch64-apple-darwin | FileCheck %s
+; RUN: llc --mattr=+sve < %s -mtriple aarch64-apple-darwin | FileCheck %s
 
 define <4 x double> @test_ldnp_v4f64(<4 x double>* %A) {
 ; CHECK-LABEL: test_ldnp_v4f64:
@@ -333,5 +333,18 @@
   ret <16 x double> %lv
 }
 
+define <vscale x 20 x float> @test_ldnp_v20f32_vscale(<vscale x 20 x float>* %A) {
+; CHECK-LABEL: test_ldnp_v20f32_vscale:
+; CHECK:       ; %bb.0:
+; CHECK-NEXT:    ptrue p0.s
+; CHECK-NEXT:    ld1w { z0.s }, p0/z, [x0]
+; CHECK-NEXT:    ld1w { z1.s }, p0/z, [x0, #1, mul vl]
+; CHECK-NEXT:    ld1w { z2.s }, p0/z, [x0, #2, mul vl]
+; CHECK-NEXT:    ld1w { z3.s }, p0/z, [x0, #3, mul vl]
+; CHECK-NEXT:    ld1w { z4.s }, p0/z, [x0, #4, mul vl]
+; CHECK-NEXT:    ret
+  %lv = load<vscale x 20 x float>, <vscale x 20 x float>* %A, align 8, !nontemporal !0
+  ret <vscale x 20 x float> %lv
+}
 
 !0 = !{i32 1}


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D133498.458767.patch
Type: text/x-patch
Size: 1207 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220908/e39ecbf9/attachment.bin>


More information about the llvm-commits mailing list