diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2015-01-18 16:17:27 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2015-01-18 16:17:27 +0000 |
commit | 67c32a98315f785a9ec9d531c1f571a0196c7463 (patch) | |
tree | 4abb9cbeecc7901726dd0b4a37369596c852e9ef /test/CodeGen/AArch64/arm64-stackmap-nops.ll | |
parent | 9f61947910e6ab40de38e6b4034751ef1513200f (diff) |
Diffstat (limited to 'test/CodeGen/AArch64/arm64-stackmap-nops.ll')
-rw-r--r-- | test/CodeGen/AArch64/arm64-stackmap-nops.ll | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/CodeGen/AArch64/arm64-stackmap-nops.ll b/test/CodeGen/AArch64/arm64-stackmap-nops.ll new file mode 100644 index 000000000000..5915b64edf0a --- /dev/null +++ b/test/CodeGen/AArch64/arm64-stackmap-nops.ll @@ -0,0 +1,15 @@ +; RUN: llc < %s -mtriple=arm64-apple-darwin | FileCheck %s + +define void @test_shadow_optimization() { +entry: +; Expect 8 bytes worth of nops here rather than 16: With the shadow optimization +; in place, 8 bytes will be consumed by the frame teardown and return instr. +; CHECK-LABEL: test_shadow_optimization: +; CHECK: nop +; CHECK-NEXT: nop +; CHECK-NOT: nop + tail call void (i64, i32, ...)* @llvm.experimental.stackmap(i64 0, i32 16) + ret void +} + +declare void @llvm.experimental.stackmap(i64, i32, ...) |