1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 2 2; RUN: llc < %s | FileCheck %s 3 4target triple = "aarch64-unknown-linux-gnu" 5 6%struct.test = type { <vscale x 2 x double>, <vscale x 2 x double>, <vscale x 2 x double> } 7 8define void @test(ptr %addr) #0 { 9; CHECK-LABEL: test: 10; CHECK: // %bb.0: // %entry 11; CHECK-NEXT: str x29, [sp, #-16]! // 8-byte Folded Spill 12; CHECK-NEXT: addvl sp, sp, #-3 13; CHECK-NEXT: .cfi_escape 0x0f, 0x0c, 0x8f, 0x00, 0x11, 0x10, 0x22, 0x11, 0x18, 0x92, 0x2e, 0x00, 0x1e, 0x22 // sp + 16 + 24 * VG 14; CHECK-NEXT: .cfi_offset w29, -16 15; CHECK-NEXT: ptrue p0.d 16; CHECK-NEXT: ld1d { z0.d }, p0/z, [x0] 17; CHECK-NEXT: ld1d { z1.d }, p0/z, [x0, #2, mul vl] 18; CHECK-NEXT: ld1d { z2.d }, p0/z, [x0, #1, mul vl] 19; CHECK-NEXT: st1d { z0.d }, p0, [sp] 20; CHECK-NEXT: st1d { z1.d }, p0, [sp, #2, mul vl] 21; CHECK-NEXT: st1d { z2.d }, p0, [sp, #1, mul vl] 22; CHECK-NEXT: addvl sp, sp, #3 23; CHECK-NEXT: ldr x29, [sp], #16 // 8-byte Folded Reload 24; CHECK-NEXT: ret 25entry: 26 %ret = alloca %struct.test, align 8 27 %val = load %struct.test, ptr %addr 28 store %struct.test %val, ptr %ret, align 8 29 ret void 30} 31 32attributes #0 = { "target-features"="+sve" } 33