Revert "Reapply 222538 and update tests to explicitly request small code model and...
[oota-llvm.git] / test / MC / ELF / cfi-window-save.s
1 // RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -s -sr -sd | FileCheck %s
2
3 # Should use SPARC as the target to test this. However, SPARC does not
4 # use MC yet.
5
6 f:
7         .cfi_startproc
8         nop
9         .cfi_window_save
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: 0x48
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 037A5200 01781001
30 // CHECK-NEXT:       0010: 1B0C0708 90010000 14000000 1C000000
31 // CHECK-NEXT:       0020: 00000000 02000000 00412D00 00000000
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: 0x390
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