blob: 2647ac44296908abbfb990ab35af97f4fb3f95c8 [file] [log] [blame]
Lang Hamesa7395bf2014-12-02 21:36:24 +00001; RUN: llc < %s -mtriple=arm64-apple-darwin | FileCheck %s
2
3define void @test_shadow_optimization() {
4entry:
5; Expect 8 bytes worth of nops here rather than 16: With the shadow optimization
6; in place, 8 bytes will be consumed by the frame teardown and return instr.
7; CHECK-LABEL: test_shadow_optimization:
8; CHECK: nop
9; CHECK-NEXT: nop
10; CHECK-NOT: nop
David Blaikie23af6482015-04-16 23:24:18 +000011 tail call void (i64, i32, ...) @llvm.experimental.stackmap(i64 0, i32 16)
Lang Hamesa7395bf2014-12-02 21:36:24 +000012 ret void
13}
14
15declare void @llvm.experimental.stackmap(i64, i32, ...)