[RemoveDIs][DebugInfo] Update SROA to handle DPVAssigns (#78475)
[llvm-project.git] / llvm / test / MC / ELF / cfi-same-value.s
blob9ee4b3768ca3bf1a85446539076ca8ab6ad2f655
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_same_value %rbp{{$}}
5 # ASM-NEXT: nop
7 f:
8 .cfi_startproc
9 nop
10 .cfi_same_value 6
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 00410806 00000000
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: SHF_INFO_LINK
42 // CHECK-NEXT: ]
43 // CHECK-NEXT: Address: 0x0
44 // CHECK-NEXT: Offset:
45 // CHECK-NEXT: Size: 24
46 // CHECK-NEXT: Link:
47 // CHECK-NEXT: Info:
48 // CHECK-NEXT: AddressAlignment: 8
49 // CHECK-NEXT: EntrySize: 24
50 // CHECK-NEXT: Relocations [
51 // CHECK-NEXT: 0x20 R_X86_64_PC32 .text 0x0
52 // CHECK-NEXT: ]
53 // CHECK: }