aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/ARM64/compact-unwind-unhandled-cfi.S
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/ARM64/compact-unwind-unhandled-cfi.S')
-rw-r--r--test/CodeGen/ARM64/compact-unwind-unhandled-cfi.S17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/CodeGen/ARM64/compact-unwind-unhandled-cfi.S b/test/CodeGen/ARM64/compact-unwind-unhandled-cfi.S
new file mode 100644
index 0000000..250732d
--- /dev/null
+++ b/test/CodeGen/ARM64/compact-unwind-unhandled-cfi.S
@@ -0,0 +1,17 @@
+; RUN: llvm-mc -triple arm64-apple-darwin -filetype=obj -o /dev/null %s
+
+ .text
+ .globl _foo
+ .cfi_startproc
+_foo:
+ stp x29, x30, [sp, #-16]!
+ .cfi_adjust_cfa_offset 16
+
+ ldp x29, x30, [sp], #16
+ .cfi_adjust_cfa_offset -16
+ .cfi_restore x29
+ .cfi_restore x30
+
+ ret
+
+ .cfi_endproc