1 @ RUN: llvm-mc %s -triple=armv7-unknown-linux-gnueabi -filetype=obj -o - \
2 @ RUN: | llvm-readobj -s -sd -sr | FileCheck %s
4 @ Check the compact pr0 model
35 @-------------------------------------------------------------------------------
36 @ Check .TEST1 section
37 @-------------------------------------------------------------------------------
41 @ CHECK: SectionData (
42 @ CHECK: 0000: 00482DE9 0DB0A0E1 0048BDE8 0EF0A0E1 |.H-......H......|
47 @-------------------------------------------------------------------------------
48 @ Check .ARM.exidx.TEST1 section
49 @-------------------------------------------------------------------------------
51 @ CHECK: Name: .ARM.exidx.TEST1
52 @-------------------------------------------------------------------------------
53 @ 0x80 = Compact model 0, personality routine: __aeabi_unwind_cpp_pr0
54 @ 0x9B = $sp can be found in $r11
55 @ 0x8480 = pop {r11, r14}
56 @-------------------------------------------------------------------------------
57 @ CHECK: SectionData (
58 @ CHECK: 0000: 00000000 80849B80 |........|
61 @-------------------------------------------------------------------------------
62 @ The first word should be relocated to .TEST1 section. Besides, there is
63 @ another relocation entry for __aeabi_unwind_cpp_pr0, so that the linker
64 @ will keep __aeabi_unwind_cpp_pr0.
65 @-------------------------------------------------------------------------------
67 @ CHECK: Name: .rel.ARM.exidx.TEST1
68 @ CHECK: Relocations [
69 @ CHECK: 0x0 R_ARM_PREL31 .TEST1 0x0
70 @ CHECK: 0x0 R_ARM_NONE __aeabi_unwind_cpp_pr0 0x0
75 @-------------------------------------------------------------------------------
76 @ Check .TEST2 section
77 @-------------------------------------------------------------------------------
80 @ CHECK: SectionData (
81 @ CHECK: 0000: 00482DE9 0088BDE8 |.H-.....|
84 @-------------------------------------------------------------------------------
85 @ Check .ARM.exidx.TEST1 section
86 @-------------------------------------------------------------------------------
88 @ CHECK: Name: .ARM.exidx.TEST2
89 @-------------------------------------------------------------------------------
90 @ 0x80 = Compact model 0, personality routine: __aeabi_unwind_cpp_pr0
91 @ 0x8480 = pop {r11, r14}
93 @-------------------------------------------------------------------------------
94 @ CHECK: SectionData (
95 @ CHECK: 0000: 00000000 B0808480 |........|
98 @-------------------------------------------------------------------------------
99 @ The first word should be relocated to .TEST2 section. Besides, there is
100 @ another relocation entry for __aeabi_unwind_cpp_pr0, so that the linker
101 @ will keep __aeabi_unwind_cpp_pr0.
102 @-------------------------------------------------------------------------------
104 @ CHECK: Name: .rel.ARM.exidx.TEST2
105 @ CHECK: Relocations [
106 @ CHECK: 0x0 R_ARM_PREL31 .TEST2 0x0
107 @ CHECK: 0x0 R_ARM_NONE __aeabi_unwind_cpp_pr0 0x0