Changeset View
Changeset View
Standalone View
Standalone View
llvm/test/CodeGen/AArch64/local_vars.ll
Show All 33 Lines | |||||
; Dont't really care, but it would be a Bad Thing if this came after the epilogue. | ; Dont't really care, but it would be a Bad Thing if this came after the epilogue. | ||||
; CHECK-WITHFP-ARM64: bl foo | ; CHECK-WITHFP-ARM64: bl foo | ||||
; CHECK: bl foo | ; CHECK: bl foo | ||||
call void @foo() | call void @foo() | ||||
ret void | ret void | ||||
; CHECK: ldr x30, [sp], #16 | ; CHECK: ldr x30, [sp], #16 | ||||
; CHECK-NEXT: .cfi_adjust_cfa_offset -16 | |||||
; CHECK-NEXT: ret | ; CHECK-NEXT: ret | ||||
; CHECK-WITHFP-ARM64: ldp x29, x30, [sp], #16 | ; CHECK-WITHFP-ARM64: ldp x29, x30, [sp], #16 | ||||
; CHECK-WITHFP-ARM64-NEXT: .cfi_adjust_cfa_offset -16 | |||||
; CHECK-WITHFP-ARM64-NEXT: ret | ; CHECK-WITHFP-ARM64-NEXT: ret | ||||
} | } | ||||
define void @stack_local() { | define void @stack_local() { | ||||
%local_var = alloca i64 | %local_var = alloca i64 | ||||
; CHECK-LABEL: stack_local: | ; CHECK-LABEL: stack_local: | ||||
; CHECK: sub sp, sp, #16 | ; CHECK: sub sp, sp, #16 | ||||
Show All 9 Lines |