1 // RUN: llvm-mc -triple x86_64-apple-darwin -filetype=obj %s -o - | macho-dump | FileCheck %s
3 // We were trying to generate compact unwind info for assembly like this.
4 // The .cfi_def_cfa directive, however, throws a wrench into that and was
5 // causing an llvm_unreachable() failure. Make sure the assembler can handle
6 // the input. The actual eh_frames created using these directives are checked
7 // elsewhere. This test is a simpler "does the code assemble" check.
14 .cfi_def_cfa_offset 16
18 .cfi_def_cfa_register rbp
22 movdqa %xmm0, -0x80(%rbp)
24 movdqa %xmm1, -0x70(%rbp)
26 movdqa %xmm2, -0x60(%rbp)
28 movdqa %xmm3, -0x50(%rbp)
30 movdqa %xmm4, -0x40(%rbp)
32 movdqa %xmm5, -0x30(%rbp)
34 movdqa %xmm6, -0x20(%rbp)
36 movdqa %xmm7, -0x10(%rbp)
39 .macro RestoreRegisters
41 movdqa -0x80(%rbp), %xmm0
43 movdqa -0x70(%rbp), %xmm1
45 movdqa -0x60(%rbp), %xmm2
47 movdqa -0x50(%rbp), %xmm3
49 movdqa -0x40(%rbp), %xmm4
51 movdqa -0x30(%rbp), %xmm5
53 movdqa -0x20(%rbp), %xmm6
55 movdqa -0x10(%rbp), %xmm7
73 // CHECK: 'section_name', '__eh_frame\x00