1; RUN: llc < %s -aarch64-order-frame-objects=0 | FileCheck %s 2; Regression test for bug that occured with FP that was not 16-byte aligned. 3; We would miscalculate the offset for the st2g. 4 5target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128" 6target triple = "aarch64-unknown-linux-android10000" 7 8; Function Attrs: sanitize_memtag sspstrong 9define void @test(ptr %agg.result, float %call, i32 %size) #1 personality ptr null { 10entry: 11 %0 = alloca i64, align 8 12 %1 = alloca i64, align 8 13 %2 = alloca i64, align 8 14 %3 = alloca i64, align 8 15 %4 = alloca i64, i32 %size, align 8 ; VLA to force use of FP for st2g 16 call void @test1(ptr %0) 17 call void @test1(ptr %1) 18 call void @test1(ptr %2) 19 call void @test1(ptr %3) 20 store float %call, ptr %agg.result, align 8 21 ret void 22} 23 24; CHECK-LABEL: test 25; CHECK: sub x8, x29, #88 26; CHECK: st2g sp, [x8, #32] 27; CHECK: st2g sp, [x8] 28 29declare void @test1(ptr) 30 31attributes #1 = { sanitize_memtag sspstrong "frame-pointer"="non-leaf" "target-features"="+mte,+neon" } 32