[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / ELF / cfi-remember.s
blobffafe785b4840cfe9fb2f35f6c7f7fb0c0fe734f
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_remember_state{{$}}
5 # ASM-NEXT: nop
7 f:
8 .cfi_startproc
9 nop
10 .cfi_remember_state
11 nop
12 .cfi_restore_state
13 nop
14 .cfi_endproc
16 // CHECK: Section {
17 // CHECK: Index:
18 // CHECK: Name: .eh_frame
19 // CHECK-NEXT: Type: SHT_X86_64_UNWIND
20 // CHECK-NEXT: Flags [
21 // CHECK-NEXT: SHF_ALLOC
22 // CHECK-NEXT: ]
23 // CHECK-NEXT: Address: 0x0
24 // CHECK-NEXT: Offset: 0x48
25 // CHECK-NEXT: Size: 48
26 // CHECK-NEXT: Link: 0
27 // CHECK-NEXT: Info: 0
28 // CHECK-NEXT: AddressAlignment: 8
29 // CHECK-NEXT: EntrySize: 0
30 // CHECK-NEXT: Relocations [
31 // CHECK-NEXT: ]
32 // CHECK-NEXT: SectionData (
33 // CHECK-NEXT: 0000: 14000000 00000000 017A5200 01781001
34 // CHECK-NEXT: 0010: 1B0C0708 90010000 14000000 1C000000
35 // CHECK-NEXT: 0020: 00000000 03000000 00410A41 0B000000
36 // CHECK-NEXT: )
37 // CHECK-NEXT: }
38 // CHECK: Section {
39 // CHECK: Index:
40 // CHECK-NEXT: Name: .rela.eh_frame
41 // CHECK-NEXT: Type: SHT_RELA
42 // CHECK-NEXT: Flags [
43 // CHECK-NEXT: ]
44 // CHECK-NEXT: Address: 0x0
45 // CHECK-NEXT: Offset:
46 // CHECK-NEXT: Size: 24
47 // CHECK-NEXT: Link:
48 // CHECK-NEXT: Info:
49 // CHECK-NEXT: AddressAlignment: 8
50 // CHECK-NEXT: EntrySize: 24
51 // CHECK-NEXT: Relocations [
52 // CHECK-NEXT: 0x20 R_X86_64_PC32 .text 0x0
53 // CHECK-NEXT: ]
54 // CHECK: }