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 @ The first word should be relocated to .TEST1 section. Besides, there is
54 @ another relocation entry for __aeabi_unwind_cpp_pr0, so that the linker
55 @ will keep __aeabi_unwind_cpp_pr0.
56 @-------------------------------------------------------------------------------
57 @ CHECK: Relocations [
58 @ CHECK: 0x0 R_ARM_PREL31 .TEST1 0x0
59 @ CHECK: 0x0 R_ARM_NONE __aeabi_unwind_cpp_pr0 0x0
61 @-------------------------------------------------------------------------------
62 @ 0x80 = Compact model 0, personality routine: __aeabi_unwind_cpp_pr0
63 @ 0x9B = $sp can be found in $r11
64 @ 0x8480 = pop {r11, r14}
65 @-------------------------------------------------------------------------------
66 @ CHECK: SectionData (
67 @ CHECK: 0000: 00000000 80849B80 |........|
72 @-------------------------------------------------------------------------------
73 @ Check .TEST2 section
74 @-------------------------------------------------------------------------------
77 @ CHECK: SectionData (
78 @ CHECK: 0000: 00482DE9 0088BDE8 |.H-.....|
81 @-------------------------------------------------------------------------------
82 @ Check .ARM.exidx.TEST1 section
83 @-------------------------------------------------------------------------------
85 @ CHECK: Name: .ARM.exidx.TEST2
86 @-------------------------------------------------------------------------------
87 @ The first word should be relocated to .TEST2 section. Besides, there is
88 @ another relocation entry for __aeabi_unwind_cpp_pr0, so that the linker
89 @ will keep __aeabi_unwind_cpp_pr0.
90 @-------------------------------------------------------------------------------
91 @ CHECK: Relocations [
92 @ CHECK: 0x0 R_ARM_PREL31 .TEST2 0x0
93 @ CHECK: 0x0 R_ARM_NONE __aeabi_unwind_cpp_pr0 0x0
95 @-------------------------------------------------------------------------------
96 @ 0x80 = Compact model 0, personality routine: __aeabi_unwind_cpp_pr0
97 @ 0x8480 = pop {r11, r14}
99 @-------------------------------------------------------------------------------
100 @ CHECK: SectionData (
101 @ CHECK: 0000: 00000000 B0808480 |........|