aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/AArch64/wineh-align-stack.ll
blob: ddb0ab1e59524f58d40734c4f794f38197e5f211 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
; RUN: llc < %s -mtriple=aarch64-windows | FileCheck %s

define dso_local void @func() {
entry:
  %buf = alloca [64 x i8], align 32
  %arraydecay = getelementptr inbounds [64 x i8], ptr %buf, i64 0, i64 0
  call void @other(ptr noundef %arraydecay)
  ret void
}

declare dso_local void @other(ptr noundef)

; CHECK-LABEL: func:
; CHECK-NEXT: .seh_proc func
; CHECK-NEXT: // %bb.0:
; CHECK-NEXT: stp x29, x30, [sp, #-16]!
; CHECK-NEXT: .seh_save_fplr_x 16
; CHECK-NEXT: mov x29, sp
; CHECK-NEXT: .seh_set_fp
; CHECK-NEXT: .seh_endprologue
; CHECK-NEXT: sub x9, sp, #80
; CHECK-NEXT: and sp, x9, #0xffffffffffffffe0