cfi-advance-loc2.s revision 7486d92a6c949a193bb75c0ffa0170eeb2fabb80
1// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -s -sr -sd | FileCheck %s
2
3// test that this produces a correctly encoded cfi_advance_loc2
4
5f:
6	.cfi_startproc
7        nop
8        .zero 255, 0x90
9	.cfi_def_cfa_offset 8
10        nop
11	.cfi_endproc
12
13// CHECK:        Section {
14// CHECK:          Name: .eh_frame
15// CHECK-NEXT:     Type: SHT_PROGBITS
16// CHECK-NEXT:     Flags [
17// CHECK-NEXT:       SHF_ALLOC
18// CHECK-NEXT:     ]
19// CHECK-NEXT:     Address: 0x0
20// CHECK-NEXT:     Offset: 0x148
21// CHECK-NEXT:     Size: 48
22// CHECK-NEXT:     Link: 0
23// CHECK-NEXT:     Info: 0
24// CHECK-NEXT:     AddressAlignment: 8
25// CHECK-NEXT:     EntrySize: 0
26// CHECK-NEXT:     Relocations [
27// CHECK-NEXT:     ]
28// CHECK-NEXT:     SectionData (
29// CHECK-NEXT:       0000: 14000000 00000000 017A5200 01781001
30// CHECK-NEXT:       0010: 1B0C0708 90010000 14000000 1C000000
31// CHECK-NEXT:       0020: 00000000 01010000 00030001 0E080000
32// CHECK-NEXT:     )
33// CHECK-NEXT:   }
34
35// CHECK:        Section {
36// CHECK:          Name: .rela.eh_frame
37// CHECK-NEXT:     Type: SHT_RELA
38// CHECK-NEXT:     Flags [
39// CHECK-NEXT:     ]
40// CHECK-NEXT:     Address: 0x0
41// CHECK-NEXT:     Offset: 0x490
42// CHECK-NEXT:     Size: 24
43// CHECK-NEXT:     Link: 7
44// CHECK-NEXT:     Info: 4
45// CHECK-NEXT:     AddressAlignment: 8
46// CHECK-NEXT:     EntrySize: 24
47// CHECK-NEXT:     Relocations [
48// CHECK-NEXT:       0x20 R_X86_64_PC32 .text 0x0
49// CHECK-NEXT:     ]
50// CHECK:        }
51