1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00
llvm-mirror/test/MC/AArch64/arm64-compact-unwind-fallback.s
Francis Visoiu Mistrih 546bf16c10 [MC] Fallback on DWARF when generating compact unwind on AArch64
Instead of asserting when using the def_cfa directive with a register
different from fp, fallback on DWARF.

Easily triggered with:

.cfi_def_cfa x1, 32;

rdar://40249694

Differential Revision: https://reviews.llvm.org/D47593

llvm-svn: 333667
2018-05-31 16:33:26 +00:00

16 lines
417 B
ArmAsm

// RUN: llvm-mc -triple=arm64-apple-ios -filetype=obj %s -o %t
// RUN: llvm-objdump -macho -unwind-info -dwarf=frames %t | FileCheck %s
// Check that we fallback on DWARF instead of asserting.
// CHECK: Contents of __compact_unwind section:
// CHECK: compact encoding: 0x03000000
// CHECK: .eh_frame contents:
// CHECK: DW_CFA_def_cfa: reg1 +32
_cfi_dwarf:
.cfi_startproc
.cfi_def_cfa x1, 32;
.cfi_endproc