[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / ELF / cfi-escape.s
blobdaedc52eae235de152bc1f9018475d3aa2544865
1 # RUN: llvm-mc -triple x86_64 %s | FileCheck %s --check-prefix=ASM
2 # RUN: llvm-mc -filetype=obj -triple x86_64 %s | llvm-readobj -S --sr --sd - | FileCheck %s
4 # ASM: .cfi_escape 0x15, 0x07, 0x7f{{$}}
5 # ASM-NEXT: nop
7 f:
8 .cfi_startproc
9 nop
10 .cfi_escape 0x15, 7, 0x7f # DW_CFA_val_offset_sf, %esp, 8/-8
11 nop
12 .cfi_endproc
14 // CHECK: Section {
15 // CHECK: Index:
16 // CHECK: Name: .eh_frame
17 // CHECK-NEXT: Type: SHT_X86_64_UNWIND
18 // CHECK-NEXT: Flags [
19 // CHECK-NEXT: SHF_ALLOC
20 // CHECK-NEXT: ]
21 // CHECK-NEXT: Address: 0x0
22 // CHECK-NEXT: Offset: 0x48
23 // CHECK-NEXT: Size: 48
24 // CHECK-NEXT: Link: 0
25 // CHECK-NEXT: Info: 0
26 // CHECK-NEXT: AddressAlignment: 8
27 // CHECK-NEXT: EntrySize: 0
28 // CHECK-NEXT: Relocations [
29 // CHECK-NEXT: ]
30 // CHECK-NEXT: SectionData (
31 // CHECK-NEXT: 0000: 14000000 00000000 017A5200 01781001
32 // CHECK-NEXT: 0010: 1B0C0708 90010000 14000000 1C000000
33 // CHECK-NEXT: 0020: 00000000 02000000 00411507 7F000000
34 // CHECK-NEXT: )
35 // CHECK-NEXT: }
36 // CHECK-NEXT: Section {
37 // CHECK-NEXT: Index:
38 // CHECK-NEXT: Name: .rela.eh_frame
39 // CHECK-NEXT: Type: SHT_RELA
40 // CHECK-NEXT: Flags [
41 // CHECK-NEXT: ]
42 // CHECK-NEXT: Address: 0x0
43 // CHECK-NEXT: Offset:
44 // CHECK-NEXT: Size: 24
45 // CHECK-NEXT: Link:
46 // CHECK-NEXT: Info:
47 // CHECK-NEXT: AddressAlignment: 8
48 // CHECK-NEXT: EntrySize: 24
49 // CHECK-NEXT: Relocations [
50 // CHECK-NEXT: 0x20 R_X86_64_PC32 .text 0x0
51 // CHECK-NEXT: ]
52 // CHECK: }