From: Zain Jaffal Date: Thu, 8 Sep 2022 15:42:11 +0000 (+0100) Subject: [AArch64] Add test for vscale nontemporal loads larger than 256. X-Git-Tag: upstream/17.0.6~34059 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=04548e82ed7c24422aa4bb09d6a552524e77c9f6;p=platform%2Fupstream%2Fllvm.git [AArch64] Add test for vscale nontemporal loads larger than 256. Reviewed By: fhahn Differential Revision: https://reviews.llvm.org/D133498 --- diff --git a/llvm/test/CodeGen/AArch64/nontemporal-load.ll b/llvm/test/CodeGen/AArch64/nontemporal-load.ll index 84adcaf..bc054f2 100644 --- a/llvm/test/CodeGen/AArch64/nontemporal-load.ll +++ b/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 @@ define <16 x double> @test_ldnp_v16f64(<16 x double>* %A) { ret <16 x double> %lv } +define @test_ldnp_v20f32_vscale(* %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, * %A, align 8, !nontemporal !0 + ret %lv +} !0 = !{i32 1}