1 # RUN: llc -mtriple=aarch64-arm-none-eabi -run-pass=prologepilog -o - %s 2>&1 | FileCheck %s
3 target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
4 target triple = "aarch64-arm-none-eabi"
6 define dso_local i32 @foo() "sign-return-address"="all" "sign-return-address-key"="a_key" {
11 define dso_local i32 @bar() "sign-return-address"="all" "sign-return-address-key"="b_key" {
20 tracksRegLiveness: true
23 #CHECK: frame-setup PACIASP implicit-def $lr, implicit $lr, implicit $sp
24 #CHECK: frame-setup CFI_INSTRUCTION negate_ra_sign_state
25 #CHECK: frame-destroy AUTIASP implicit-def $lr, implicit $lr, implicit $sp
29 RET_ReallyLR implicit killed $w0
36 tracksRegLiveness: true
39 #CHECK: frame-setup EMITBKEY
40 #CHECK: frame-setup PACIBSP implicit-def $lr, implicit $lr, implicit $sp
41 #CHECK: frame-setup CFI_INSTRUCTION negate_ra_sign_state
42 #CHECK: frame-destroy AUTIBSP implicit-def $lr, implicit $lr, implicit $sp
46 RET_ReallyLR implicit killed $w0